Let's compare the running time of two algorithms for the following problem. NFA Union INPUT: two NFAs M and N QUESTION:

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Let's compare the running time of two algorithms for the following problem. NFA Union INPUT: two NFAs M and N QUESTION:

Post by answerhappygod »

Let S Compare The Running Time Of Two Algorithms For The Following Problem Nfa Union Input Two Nfas M And N Question 1
Let S Compare The Running Time Of Two Algorithms For The Following Problem Nfa Union Input Two Nfas M And N Question 1 (85.23 KiB) Viewed 154 times
Let's compare the running time of two algorithms for the following problem. NFA Union INPUT: two NFAs M and N QUESTION: a DFA P such that L(P) =LM) UL(N) Note that we start with NFAs but we want a DFA as our answer. 1. Algorithm A is: convert M and N separately to DFAs using the subset construction; then do the product construction on the results. 2. Algorithm B is: use Algorithm 3 on M and N, followed by conversion of the resulting NFA, to a DFA. Give the worst-case asymptotic running time of each algorithm, as a function of the number of states on M and N. Is one of them preferable in the sense of asymptotic running time? In your calculations, • charge (29) for a call to the subset construction on an automata with q states charge (9192) for a call to the product construction on automata with 91 and 92 states • charge 0(91 +92) for a call to Algorithm 3 on automata with qı and q2 states
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply