Question
Download Solution PDFWhich of the following is strictly more powerful than regular expression?
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFConcept:
Context free grammar is more powerful than regular expression.
Language Power Order: Finite automata DFA ≡ NFA ≡ ϵ -NFA < Push down automata (NPDA > DPDA) < Linear Bound automata < Turing machine (DTM ≡ NTM)
Explanation:
Any language that can be generated using regular expressions can be generated by a context free grammar but there are languages that can be generated by a context free grammar that cannot be generated by any regular expression.
Hence option 2 is the correct answer.
Note:
NFA → Nondeterministic Finite Automation
DFA → Deterministic Finite Automation
DPDA → Deterministic Push down automata
NPDA → Nondeterministic Push down automata
DTM → Deterministic Turing Machine
DTM → Nondeterministic Turing Machine
Last updated on Jun 9, 2024
-> UPMRC Assistant Manager Result has been released.
-> The exam was conducted on 11th, 12th, and 14th May 2024. The provisionally selected candidates will be called for DV and Medical examination.
-> Eligible candidates had applied online from 20th March to 19th April 2024.
-> A total of 31 vacancies have been announced.
-> Eligible candidates can apply online from 20th March to 19th April 2024.
-> The UPMRC Assistant Manager Selection Process consists of three stages - computer-Based Test, Document verification, and a Medical examination.
-> The salary of the finally appointed candidates will be in the pay scale of Rs. 50,000 to Rs. 1,60,000.