Which one is faster?
A binary search of an orderd set of elements in an array
or
a sequential search of the elements.

Answer Posted / angu

Binary Search is efficent and faster because in Binary
search we search in systematic way which helps to fetch the
data easy. where as in Sequential search we have to come
across tll the nodes to get the desired data.

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is unordered_map a hash table?

672


Which is best array or linked list?

690


Can treemap key null?

845


Explain quick sort and merge sort algorithms.

805


What is a undirected graph?

763


What do u mean by array?

728


Which is faster array or linked list?

675


What is collections singletonlist?

702


What are the average and worst time complexity in a sorted binary tree is

777


What do you mean by recursive definition?

737


Is merge sort better than quick?

723


Does mentioning the array name gives the base address in all the contexts?

1069


What happens if an array goes out-of-bounds?

861


Write a program to insert an element and in the specific position in the array?

735


What is top in stack?

659