48.8k views
3 votes
In a binary sort, you continue to compare pairs of items, swapping them if they are out of order, so that the smallest items "bubble" to the top of the list, eventually creating a sorted list.

A) True
B) False

2 Answers

3 votes

Final answer:

The statement in the question is True. In a binary sort, pairs of adjacent elements are compared and swapped if they are in the wrong order, creating a sorted list.

Step-by-step explanation:

The subject of this question is Computer Science and the grade level is High School.

The statement in the question In a binary sort, you continue to compare pairs of items, swapping them if they are out of order, so that the smallest items 'bubble' to the top of the list, eventually creating a sorted list is True.

In a binary sort, also known as a bubble sort, pairs of adjacent elements are compared and swapped if they are in the wrong order. This process is repeated until the entire list is sorted in ascending order.

User Zane Claes
by
5.7k points
5 votes

Answer:

This statement is

A) True

Step-by-step explanation:

Bubble Sort:

Such a binary sort, in which we keep comparing the pairs of items, swapping them if they are not in order, until the smallest item bubble to the top of the list, therefore creating a sorted list which is known as bubble sort.

User Bennyxguo
by
5.7k points