GoConqr has a new look! Let us know what you think.

Notes

Untitled

natashaaaa English 1 page

Content of the notes (1)

Page 1

Pseudo-Code

"computer coding language"

"brief Language"

"Follow the conditions until the statement is true for example:

if Y>12 then go to step 2. If Y=12 then stop."

This can also be seen in a flow chart.

Bubble Sort

1. Look at the first two numbers on the listing. If they're in the wrong order, swap them.

2. Move onto the next pair of numbers and repeat step one. Go through the list until you get to the last numbers. This set of comparisons is called a pass.

3. When you've finished this pass, go back to the beginning and start again. When there are no more swaps, the listing is complete.

Each pass has one less comparison than the one before it.

Quick Pass

1. Choose a pivot. Move any numbers less than the value of the pivot to a new list on the left, and any values higher than the pivot to a new list on the right. Do not change the order of the numbers.

2. Repeat step 1 for each list, choosing new pivots each time.

3. When every numbers been used as a pivot, stop, the list is in order.

Information

Description
Note on Untitled, created by natashaaaa on 30/04/2015.
Created by
natashaaaa
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?