Finite Automata Essay

Decent Essays
I have always found the field of Finite Automata challenging but interesting. One of the most important applications of Finite State Machines is regular expression string matching. When I took Finite Automata at Fresno State, I had thought about implementing a graphical application for building finite state machines. My aim was just not to implement a graphical representation of the machines but also construct compact machines and perform improved string matching. Regular expressions also called pattern represent a set of strings and find their application in database and search engines. Finite Automata is an abstract but important part of Computer Science. There is still an area of regular expression matching which has not been paid enough …show more content…
[3]

The two types of Finite State Machines covered in this project are Non-Deterministic and Deterministic. Non- Deterministic Finite State Machines (NFSM or NFA) can have more than one transitions from a state after reading the same character while in Deterministic Finite State Machines(DFSM or DFA), machines on reading a character goes to only one state. For example, a NFA after reading character ‘a’ from state 1 can go to state 2 and also state 3, but a DFA can only go to one state say state 2 after reading ‘a’.

1.4 Regular expressions
Regular expressions denote regular Languages. For example, (r1 + r2), and (r1r2) are regular expressions for languages R1 U R2 (R1 Union with R2), R1R2 (R1 concatenate with R2). Expression (a*+ b) would correspond to the language {a, b, aa, aa…}, that is the set of strings of any length of a’s and one b. A regular expression is not unique for a language. “A particular regular language can have more than 2 regular expressions for it. Similarly, there can be more than one FSM for a single regular expression. For example (a + b)* and (a*b*)* correspond to the set of all strings over the alphabet {a, b}”
…show more content…
Regular expression matching is checking whether an input string is matched or accepted by a given expression. For example, a+b expression only accepts character ‘a’ or character ‘b’. Similarly, expression a*b* accepts any number of ‘a’ followed by any number of ‘b’. So, this means string aaabbb, ab, abbb, bbb, aaaa are all accepted while strings aba, bbba the ones which ends with ‘a’ after ‘b’ are not. So, if the FSMs which represent the regular expression accepts the string then, the string matches the expression else not.

1.6 Other applications of FSMs
In computer science, FSM finds its application in string matching algorithms, and language parsing. One of the strongest applications of FSM is in regular expression matching especially exact string matching. FSMs are also used in video games. In video games, FSM simulate the behavior of computer played character. The character’s behavior is represented by the machine’s states, and the transition from one state to another state corresponds to change in play or reaction of the character of the game to the surroundings.

Related Documents

  • Decent Essays

    Pt1420 Unit 1 Essay

    • 508 Words
    • 3 Pages

    1. What are the least, and most, amount of distinct zeroes of a 7th degree polynomial, given that at least one root is a complex number? Answer: If the equation is 7th degree then it has 7 roots.…

    • 508 Words
    • 3 Pages
    Decent Essays
  • Improved Essays

    #include int main (void) { int numone, numtwo, sum; //might need another variable printf("So you want two numbers factored."); printf("\nGive them to me one by one and I will do the factoring.") ; printf("\n\nNumber? "); scanf( "%d", &numone); printf("The prime factorization of %d is ", numone); { if(numone == 0) printf ("0"); } { if(numone == 1) printf ("1"); //works } { if(numone < 0) printf("no negative numbers allowed."); //works } for(sum=2; sum 1) printf("* "); }//till here //Part…

    • 135 Words
    • 1 Pages
    Improved Essays
  • Improved Essays

    What was the Connecticut Compromise? The Connecticut compromise was an agreement that was formed during the constitutional convention. This agreement grants states equal representation in the senate, and the House of Representatives. It was a result of a disagreement of how much representation each state should have within congress.…

    • 455 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    How did the Constitution guard against tyranny? In the summer of 1787, delegates met to fix the government that was under the very weak Articles of Confederation which was causing a lot of problems. They decided to create the Constitution and tried to make sure that tyranny would not be possible. The constitution guarded against tyranny by practicing federalism, separation of powers, checks and balances, and representative democracy.…

    • 463 Words
    • 2 Pages
    Improved Essays
  • Brilliant Essays

    Pt1420 Unit 1 Essay

    • 1006 Words
    • 5 Pages

    Task 1 Using Word, draw a time-line and identify the ten most significant events related to the “History of computing”. Provide a brief explanation – to justify each of your ten choices. Suggest some reliable sources from which anyone could find further information about each of your selected events. A short History of Computer Viruses: 1983 – This is the year when the term “Virus” was introduced by Frederick Cohen for the computer programs that are infectious as it has the tendency to replicate.…

    • 1006 Words
    • 5 Pages
    Brilliant Essays
  • Improved Essays

    The Constitution was one of the first successful acts against tyranny. The Constitution was written in Philadelphia in the summer of 1787 when the chief executive and the 55 delegates met at a Constitutional Convention. The Constitution took the place of the Articles of Confederation in 1789. James Madison wasn’t sure that the frame of the Constitution would eliminate tyranny in the states. How does the Constitution truly protect the states against tyranny?…

    • 903 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    As history is made day by day, reflections upon the past frequently pass through various people’s minds. Nowadays, politics have been on the minds of people, with the election coming up. This questioning over politics has occurred for many hundreds of years. In the later 1700s, political debates appeared between the Federalist and the Anti-Federalists. My stance within this issue is leaning in favor of the Federalists.…

    • 918 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Federalism has developed over the years in History and those changes between state and federal government powers are reflected as follows. Dual Federalism describes federalism from around the Civil War, until the 1930’s. Overall “dual federalism assumes that state and national governments are more or less equal.” (Sidlow, 2015, p. 57) The national government dealt with national defense, foreign policy and commerce and state government dealt with local matters, economic regulation and criminal law. Examples of Dual Federalism reflect during the Civil War, when courts tended to implement state rights with regard to police power and limit the federal government with regard to the commerce clause.…

    • 564 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Anti-federalists believed that each state should have an independent government with more power than the national government, so it can’t get overpowering like the government in England. Most of the Anti-federalists were people of low or medium class, because they felt the Federalists idea of government would be populated with wealthy men, giving them little to no say in what happens in the government. Many of the Anti-federalists wanted there to be a Bill of Rights, to state all of their rights, because there wasn’t one in the constitution, “Why not have a bill of rights? Why not a short document saying our rights we preserved? Are you worried that it will take up too much paper?”(Hovde NP)…

    • 409 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    The New Constitution The Federalists and the Anti-Federalists had a strictly opposing views about how the people should play in the government. Most of the time, it is the Anti-Federalists are the ones that keeps finding the flaws within the new government, they believed that liberty cannot be attained when people are being ruled by wealthy class men. On the other side, Federalists do not want the ordinary people to become “too” involved in the government, they believe that the people should embrace how the system is going to work which they should “surrender” their power to the republic government. There are also similarities present between the two, both do not promise equal powers, but instead, they wanted the trust of the public.…

    • 612 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    The American Founders utilized federalism in order to both prevent tyrannical leadership and to try and incite more participation in government and politics. The Massachusetts Constitution of 1780 states “The body-politic is formed by a voluntary association of individuals: It is a social compact, by which the whole people covenants with each citizen...that all should be governed by certain laws for the common good. ”1 This is a perfect example of federalism, as there is not one singular person or entity in charge, but rather a group of groups working together in order to ensure that no one group becomes too powerful and that everyone has equal representation. Federalism is based on the principal that there is a central government made up of…

    • 1413 Words
    • 6 Pages
    Improved Essays
  • Improved Essays

    Liberty and freedom are luxuries we have in the U.S., but we never thought that anything in our government can jeopardize them. The truth is, nothing can, thanks to the ways the Constitution protects our government from turning to tyranny. Tyranny is a form of government in which a select few have absolute power, and usually must require an overthrow of the government itself. There are 50 states in the Union, varying in size and population, and each state has different views. In the Senate, every state has two elected officials, called senators, and each senator has one vote.…

    • 550 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    State versus Federal Government In the United States, there are two types of laws: state laws and federal laws. While many different states have different opinions on how their local governments should be run, they all follow federal laws. For example, in New York, you must be 21 years old if you want to buy cigarettes in Suffolk County. But in Onondaga, you only have to be 19.…

    • 1748 Words
    • 7 Pages
    Improved Essays
  • Improved Essays

    As the political theorist and philosopher, Edmund Burke said; “All tyranny needs to gain a foothold is for people of good conscience to remain silent.” The United States of America was ruled by a tyrant king in 1776; they fought back which lead them to declare freedom and seek a new form of government. How does our written plan of government prevent all the power from going to a single place? Our plan of government stops a single place from getting too much power by federalism, separation of power, checks, and balances, and the great compromise. First, federalism prevents tyranny.…

    • 883 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    To be successful in English 1101, I need to have a good understanding of the syllabus, communicate with the professor when needed, and visit the writing studio. If I have a good understanding of the syllabus, I will be aware of upcoming important quizzes and tests which will aid me in being mindful of when I need to study. If I have a problem with any assignment, I will definitely need to contact my professor. When writing an essay, I will visit the writing studio every time I’m assigned an essay to write to seek guidance.…

    • 96 Words
    • 1 Pages
    Decent Essays