Alveyworld Inc.
  • Home
  • Apple Basics
  • Join Alveyworld

Sorting: Divide and Conquer

10/3/2014

0 Comments

 
Picture
Last time we learned that searching algorithms depend on the data being sorted. So we need to learn how to sort things efficiently.

Today we learned a few basic sorting algorithms for putting things in order. We tried putting paper bags at random weights in order of lightest to heaviest using a simple scale that compared the weight of two bags.

We learned that if we divide the problem in half repeatedly using a Quick sort  algorithm it was much more efficient than always finding the lightest bag which is called Selection sort.

We also had fun emptying the bags, but I am not sure where all the starbursts went?
0 Comments

Binary Searching (or Divide and Conquer)

10/1/2014

0 Comments

 
Picture
Today we built towers for Donald Trump with legos. We tried to build them as efficiently as possible. Some of the groups took 39 weeks to build the tower and some were more efficient. One group only took 6 weeks.

We also looked at algorithms for searching and finding a word in the dictionary. First we tried to start at the beginning at turn each page until we found the word. This is a Linear Search, and it wasn't the most effect method, it took 700 page turns to find the word Walrus. If we divided the book in half each time we could find any word in a 1500 page dictionary in 6 or 7 page turns. That is what we call a Binary Search, where we cut the problem in half each time. That was much more efficient.

But we also learned that the Binary Search only works when the data is sorted, so sometimes you are stuck with the Linear Search.
How many different applications can you think of for the Binary Search where we solve the problem by cutting the problem in half each time?

0 Comments
    Virtual Bead Loom Tutorial
    File Size: 304 kb
    File Type: pdf
    Download File

    Pacific Northwest Basket Weaver Tutorial.pdf
    File Size: 335 kb
    File Type: pdf
    Download File

    Navajo Rug Weaver Tutorial.pdf
    File Size: 430 kb
    File Type: pdf
    Download File

    Mr. Alvey

    The host of the show

    Mr. Alvey

    disclosure

    Exploring computer science syllabus/disclosure

    Archives

    November 2014
    October 2014
    September 2014
    August 2014

    Categories

    All
    Classify Computers
    Computer
    Computer Science
    Computing
    Ecs

    RSS Feed

Powered by Create your own unique website with customizable templates.
Photos used under Creative Commons from Larkrise12, MoneyBlogNewz, n.bhupinder, Kuruman
  • Home
  • Apple Basics
  • Join Alveyworld