Regular expressions and Arden’s theorem
AnswerA regular expression denotes a regular language. The basic expressions ∅, ε and a denote the empty language, the language containing the…
Read more →AnswerA regular expression denotes a regular language. The basic expressions ∅, ε and a denote the empty language, the language containing the…
Read more →AnswerThe required expression is (a+b)*ab, equivalently (a|b)*ab. The star allows any finite prefix, including ε, while the final concatenation forces the last…
Read more →AnswerA context-free grammar is G=(V,Σ,P,S), where V is a finite set of variables, Σ a disjoint terminal alphabet, P a finite set…
Read more →AnswerStart with S and apply the recursive production once, then the terminating production.S⇒aSb using S→aSb.aSb⇒a(ab)b=aabb using S→ab.There is only one variable at…
Read more →AnswerA finite automaton is an abstract machine with a finite set of states. It reads input symbols one at a time and…
Read more →AnswerAssume the binary input alphabet {0,1}. The output depends only on the current input symbol, so no previous input needs to be…
Read more →AnswerBoth machines recognize regular languages. A DFA has exactly one successor for each state-symbol pair; an NFA may have zero, one or…
Read more →November 2019 – Question 4(a)Question (restated): Given employee(empname, street, city), works(empname, companyname, salary), company(companyname, city), manages(empname, management), write SQL to find First…
Read more →May 2024 — Q5(a)Question (restated): Explain how to compute the closure of a set of functional dependencies using an example.AnswerF⁺ is the…
Read more →May 2024 — Q1(b)Question (restated): Define an ER diagram and design one for a railway reservation system.AnswerAn ER diagram represents entities, attributes…
Read more →Ask a study question in English or Hindi. I will find relevant passages from our notes.