What are deterministic and non-deterministic algorithms? Explain greedy algorithm.
Marks: 5Chapter: Unit 11: Algorithms (5Hrs)
Comprehensive questions and detailed answers for Unit 11: Algorithms (5Hrs). Perfect for exam preparation and concept clarity.
What are deterministic and non-deterministic algorithms? Explain greedy algorithm.
Write the difference between serial and parallel algorithm with example.
What is minimax algorithm? Create Huffman Tree and calculate Huffman code for the following characters along with their frequencies using Huffman algorithm.
| Characters | A | E | I | O | U | S | T |
|---|---|---|---|---|---|---|---|
| Frequencies | 10 | 15 | 12 | 3 | 4 | 13 | 1 |
What is big-oh notation? Explain about divide and conquer strategy with example.
What are deterministic and non-deterministic algorithms? Explain the use of Big Oh notation to measure the complexity of an algorithm with an example.