what is a complexity of linear search,binery search?

Answer Posted / anju

linerasearch-o(n)
binarysearcho(logn)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mean by selection sort?

490


What is two-dimensional array?

520


Can arraylist store int?

459


How many sorting are there in data structure?

487


Why is arraylist faster than linkedlist?

508






Write a program to reverse a link list.

535


Which is the parent class of linkedlist class?

444


Will this code give error if I try to add two heterogeneous elements in the arraylist? And why?

499


write an algorithm to show the procedure of insertion into a b-tree?

521


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

774


How remove all from arraylist?

483


Give a basic algorithm for searching a binary search tree?

494


Is there any difference between int[] a and int a[]?

567


What is b tree in data structure?

479


What is the difference between hashset and hashtable?

432