Thursday, 23 January 2014

Rewrite

Okay, well..even though we aren't going to Aotearoa for the school trip, for the awesomeness of the country and the funness of the program, I might as well re-edit it.

I'm going to add sorting in it:

  • Date 
  • Locations (Alphabetical) 
  • Price
  • Type of Accommodation (All Holiday Parks together; all hotels together (as if we'd be staying in a hotel, psft!)) 
  • Name of Accommodation (Alphabetical) 
Sorting the date: Use the selection sort, because it works the fastest by cutting the entire list in half every time. And after touching one of them, they can ignore it. 

Sorting the location (alphabetical): Perhaps using the bubble sort will make it most efficient. 

Sorting the price: Use the selection sort as it also works the fastest by cutting the list of who-knows-how-many-days-we-are-going in half. 

Sorting by Type of Accommodation: Okay, that one is quite a bit harder. Hmm..gotta think about that. 

Name of Accommodation (Alphabetical): Whichever one that has the lowest unary operator number. 

No comments:

Post a Comment