Problem Solving / Algorithms

Bubble 2

For the given set of data… 7 6 5 4 3 Show the steps that a Bubble Sort algorithm would make on the data set above when sorting the data from low to high.

Bubble 2 Read More »

Bubble 1

Consider the following algorithm: 01 WHILE unsorted == True: 02     unsorted = False 03     FOR position 1 to lengthOfdataset: 04         IF dataset[position] > dataset[position+1] 05             unsorted = True 06             temp = dataset[position] 07             dataset[position] =

Bubble 1 Read More »

Shopping Cart