I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
FCFS
quick sort
Bubble sort
A2 programs

In this section you will find some programs which are set as part of the A2 course.

FCFS

Write an implementation of the scheduling algorithm first come first served. Use the round robin example code to help you. You need to log in or create an account to submit code!  

quick sort

Write a program which will generate an array of 100 numbers and then run quick sort on it. Quick sort must be implemented recursivly to get the points. You need to log in or create an account to submit code!

Bubble sort

The code below will generate a list of 2000 numbers randomly. Your task is to sort them into ascending order using bubble sort. import random randomNumbers = [] count = 0 while count < 2000: randomNumbers.append(random.randint(0,10000)) count += 1 In order to do this task you must first research bubble sort to find out how […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Information