Podcast
Questions and Answers
What is the cost of linear search in the best case scenario?
What is the cost of linear search in the best case scenario?
- (br * 2)
- (br - 2)
- (br / 2) (correct)
- (2br)
When can linear search be applied according to the text?
When can linear search be applied according to the text?
- Only if the selection is on the primary key attribute
- When selection condition involves multiple comparisons
- Only if the file is sorted on the primary key attribute
- Regardless of selection condition or ordering of records (correct)
What is the cost of binary search as per the text?
What is the cost of binary search as per the text?
- [log(br) / 2]
- [br / log2]
- [log2(br)] (correct)
- [log(br)]
In which scenario is binary search generally used?
In which scenario is binary search generally used?
How do we evaluate expressions with multiple operations according to the text?
How do we evaluate expressions with multiple operations according to the text?
What does 'br' represent in the context of cost calculation?
What does 'br' represent in the context of cost calculation?
Which search algorithm is faster between linear search and binary search?
Which search algorithm is faster between linear search and binary search?
What method is used for evaluating expressions with multiple operations from bottom to top?
What method is used for evaluating expressions with multiple operations from bottom to top?