Physical representation of bead sort

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
YoungPhysicist
Insights Author
Messages
350
Reaction score
203
Bead sort is a not practical sorting algorithm that suppose to have a time complexity of ##O(\sqrt{n})##in the real world.

I thought it would be great if a device that can take numbers from the computer,then turn it into analog stuff that the device can read,drop the beads,and return it to the computer as digital signals.Can such thing being constructed?

Edit:For turning signal back to digital,I thought above using a series of photodiodes and lasers to read the position of the beads,but I still got no clue of how to place them in the rod.
 
Last edited:
Physics news on Phys.org
Young physicist said:
I thought it would be great if a device that can take numbers from the computer,then turn it into analog stuff that the device can read,drop the beads,and return it to the computer as digital signals.Can such thing being constructed?

It will take O(n) to output the numbers from the computer to the bead-device, so you can't go faster than that.
The bead device would need O(n^2) beads. You'd need an plate with a rectangular array of holes and use O(n^2) devices that either push a bead through or don't. Light speed delay would mean you'd need O(n) time to distribute the numbers to be sorted, even if you had the numbers ready on an infinite set of registers and all available in parallel.

If you allow a time O(n) with a device of size O(n), bubble sort work just fine
 
willem2 said:
If you allow a time O(n) with a device of size O(n), bubble sort work just fine
Yeah, I know it wouldn't be efficient if I actually made one of those devices, but I just thought it would be interesting.