set-6
251. What is the correct postfix notation for the infix expression ?
252. Which notation is the most commonly used by humans to express arithmetic expressions?
253. Which notation is the easiest to parse and evaluate using a stack-based algorithm?
254. Which notation is the easiest to convert to machine code or assembly language?
255. What is the advantage of using prefix or postfix notation over infix notation?
256. Which of the following is NOT an application of stacks?
257. What is the application of a stack in implementing a web browser's back button?
258. Which data structure can be used to implement a stack?
259. What is the application of a stack in evaluating arithmetic expressions?
260. What is the application of a stack in implementing function calls in programming languages?
261. What is the purpose of a hash function in a hash table?
262. What is a hash table in computer science?
263. What is collision resolution in hash tables?
264. What are some common collision resolution techniques in hash tables?
265. What is linear probing in hash tables?
266. What is chaining in hash tables?
267. What is the time complexity of searching in a hash table using chaining?
268. What is the main purpose of a hash function in a hash table?
269. What is the most common way to resolve collisions in a hash table?
270. What is the time complexity of searching an element in a hash table using the hash function?
271. What is the main advantage of using a hash table over a traditional array for storing elements?
272. What is the purpose of a collision resolution technique in a hash table?
273. What is the main objective of a minimum spanning tree algorithm?
274. What is the time complexity of Prim's algorithm for finding a minimum spanning tree?
275. What is the time complexity of Kruskal's algorithm for finding a minimum spanning tree?
276. What is the difference between Prim's and Kruskal's algorithm for finding a minimum spanning tree?
277. What is the Round-Robin algorithm used for?
278. What is the main advantage of using a minimum spanning tree algorithm?
279. What is the use of a Round-Robin algorithm in a computer system?
280. What is the main disadvantage of using a Kruskal's algorithm compared to Prim's algorithm for finding a minimum spanning tree?
281. What is the use of a hash function in a hash table data structure?
282. What is the main idea behind the greedy algorithm for solving the shortest path problem?
283. What is the time complexity of Dijkstra's algorithm for finding the shortest path in a graph?
284. What is the difference between Dijkstra's algorithm and Bellman-Ford algorithm for finding the shortest path in a graph?
285. What is the use of the relaxation step in Dijkstra's algorithm for finding the shortest path?
286. Can Dijkstra's algorithm be used to find the shortest path in a graph with negative weight edges?
287. What is the main difference between greedy algorithm and dynamic programming for solving the shortest path problem?
288. What is the use of the priority queue in Dijkstra's algorithm for finding the shortest path?
289. Which of the following statements is true about undirected graphs?
290. Which of the following data structures is commonly used to represent a graph?
291. Which of the following is the best algorithm to find the transitive closure of a graph?
292. Which of the following algorithms is used to find the shortest path in a weighted graph?
293. What is the time complexity of Warshall's algorithm?
294. Which traversal algorithm is used to traverse a graph starting from a particular vertex and exploring as far as possible along each branch before backtracking?
295. Which traversal algorithm is used to traverse a graph by exploring all the vertices at the same level before moving on to the next level?
296. What is the time complexity of Breadth-first traversal of a graph?
297. Which of the following algorithms can be used to find a topological ordering of a directed acyclic graph (DAG)?
298. Which of the following is true about a DAG?
299. Which of the following is used to determine whether a graph is acyclic or not?
300. What is the time complexity of Depth-first traversal of a graph?
301. Which of the following algorithms is used to find the minimum spanning tree of a graph?
302. Which of the following is not a sorting algorithm?
303. Which of the following data structures is used to implement heap sort?
304. What is the worst-case time complexity of heap sort?
305. Which of the following is not a step in heap sort?
306. What is the space complexity of heap sort?
307. What is the minimum number of elements that can be sorted using heap sort?
308. Which of the following is not a property of a heap?
309. What is the time complexity of building a heap?
310. Which of the following is not a type of heap?
311. Which of the following is a disadvantage of heap sort?
Last updated