Rubicon Forum
Welcome, Guest. Please login or register.
March 19, 2010, 06:44:31 PM

Login with username, password and session length
Search:     Advanced search
Undeletable components are now shaded blue when loading a level in.
4400 Posts in 211 Topics by 2414 Members
Latest Member: Cubeinman
* Home Help Search Login Register
+  Rubicon Forum
|-+  Playing the Game
| |-+  Showcase (Moderator: Bucky)
| | |-+  Bubble Sort
« previous next »
Pages: [1] Print
Author Topic: Bubble Sort  (Read 3124 times)
Bucky
Moderator
Director
*****
Posts: 311


View Profile
Bubble Sort
« on: November 20, 2006, 12:38:38 AM »

bonixyc

The one thing about it that bothers me is that if you replace the 0-crate with a barrel then it will replace all the zero crates in the sorted set with barrels.
Logged

That is the most ingenious method of solving an impossible puzzle that I have ever seen.
adept
Designer
***
Posts: 61


View Profile
Re: Bubble Sort
« Reply #1 on: December 22, 2006, 10:30:36 PM »

Very cool Bubble Sort.
I modified your original so it creates a O-crate and puts it there so it doesn't have to have the crate of a barrel to begin.

disatez

I think it may run just a bit faster too.  What I would like to see is a way for it to recogninze it is finished, but I can't imagine how do that.
Logged
Bucky
Moderator
Director
*****
Posts: 311


View Profile
Re: Bubble Sort
« Reply #2 on: December 23, 2006, 12:58:32 AM »

disatez isn't a correct bubble-sort.  In the first pass,the comparator fails, but sorts itself out in subsequent  rounds.  More seriously, it burns the first crate instead of the zero (which my original also did sometimes).  It can be fixed by moving the up pipe and furnace 2 spaces to the right.
Logged

That is the most ingenious method of solving an impossible puzzle that I have ever seen.
Rene
Director
*****
Posts: 553


View Profile Email
Re: Bubble Sort
« Reply #3 on: December 27, 2006, 08:08:11 PM »


Here is a bubble sort that also collects the result. It gets around your '0'-crate issue by not comparing against 0, but against the first crate.

    Bubble Sort: bypuzuf
Logged
digitalrift
Operator
**
Posts: 17


View Profile
Re: Bubble Sort
« Reply #4 on: January 05, 2007, 09:18:19 AM »

That resembles more of a bucket sort than a bubble sort... which as a good thing, really... Tongue
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Rubicon Forum | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!