Yes Bubble sort is the least efficient algorithm available. However, for small data sets it doesnt matter much what sorting algorithm u use. And bubble sort does have a few good qualities. Apart from being the simplest and the easiest of the sorting algorithms it knows when the data set is already sorted(just a slight modification) making it ideal for sorted or nearly sorted data items(along with insertion sort).

in bubble sort one has to compare 1 st element with the second,then second element with the third and son on.it will be better to use bubble sort if number of elements to be sorted are few.

Bubble sort is an sorting algorithm, where every element in the unsorted list, is compared with every other element to make a sorted list. All these comparisons add up to the overall time complexity of the algorithm to be O(n) if n is the input size, which is really high compared to other popular algorithms.

Bubble sort is a simple sorting algorithm.It works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are wrong order.The pass through the list is repeaed until no swaps are needed,which indicates the list is sorted.

Suppose you have a sorted array of 250 elements. What is the maximum number of elements you have to examine to determine if some value v is in your array if you use an efficient search? a) 7 b) 8 c) 125 d) 250

Given N discs of decreasing size stacked on one needle and two empty needles, it is required to stack all the discs onto a second needle in decreasing order of size. The third needle may be used as temporary storage. The movement of the discs is restricted by the following rules (1) A disc may be moved from any needle to any other (2) Only one disc may be moved at a time (3) At no time may a larger disc rest upon smaller disc explain the solution?