Basic Questions for Practise : Part 1 :
What is an algorithm?
→ Define what an algorithm is and its basic characteristics.
What are the different types of algorithm design techniques?
→ Examples: Divide and Conquer, Dynamic Programming, Greedy Method, Backtracking, etc.
What is time complexity?
→ Explain how the running time of an algorithm is measured.
What is space complexity?
→ Define how much memory an algorithm uses during execution.
What is Big O notation?
→ Explain its use in representing the upper bound of an algorithm’s growth rate.
What is the difference between best case, worst case, and average case complexity?
→ Describe with examples (like linear search or binary search).
What is Divide and Conquer technique? Give an example.
→ Example: Merge Sort, Quick Sort, Binary Search.
What is a greedy algorithm? Give an example.
→ Example: Kruskal’s or Prim’s algorithm for Minimum Spanning Tree.
What is Dynamic Programming?
→ Explain with an example such as Fibonacci series or shortest path (Floyd-Warshall).
Part 2:
a)T(n)=4T(n/2)+n
b)T(n)=2T(n/2)+nlogn
n=3 and m=20, Profits: (p1,p2,p3)=(25,24,15)Weights: (w1,w2,w3)=(18,15,10)
|
|
Title | |
|---|---|---|
|
|
Question Bank 1 |