Question
Define ambiguity in Context-Free Grammar (CFG). Prove that the following grammar is ambiguous.
Write a Turing machine to recognize the language of all strings of even length over the alphabet {a, b}.
Define ambiguity in Context-Free Grammar (CFG). Prove that the following grammar is ambiguous.
Use Prim's algorithm to construct a minimum spanning tree for the following graph. (use starting node A).
Give an algorithm for topological sort. Obtain a topological ordering for the following graph:
Show stepwise sorting of elements using Heapsort algorithm to the following max heap
.
Discuss the relationship between class P, NP, NP complete and NP Hard problems with suitable example of each class.
Define fractional Knap-Sack problem, and give a greedy algorithm to solve this problem efficiently
IGNOU Doubts & Queries
Click to Contact Us
Call - 9199852182 Call - 9852900088 myabhasolutions@gmail.com WhatsApp - 9852900088