@AlgoMotion
  @AlgoMotion
AlgoMotion | Bogosort Sheds Donna Lee Until it Sorts the List @AlgoMotion | Uploaded January 2024 | Updated October 2024, 40 minutes ago.
Bogosort, possibly the dumbest sorting algorithm in existence, sheds over the Donna Lee changes until it successfully sorts the list.

The Bogosort algorithm is as follows:

1. Randomly shuffle the list.
2. Check if the list is sorted.
3. If not, go back to 1.

For a list of n elements, there is a 1/n! chance that Bogosort successfully sorts the list on any given pass, since there are n! (n factorial) possible permutations of the list. So with six elements, the probability of the list being sorted on any given pass is 1/6! = 1/720 ≈ 0.00139.

In this instance, the algorithm took 1962 passes to sort the list.

The six elements of the list are mapped to notes of a specific scale, depending on which chord is being played in the progression. Scales used include the major pentatonic, altered scale, Lydian dominant, Locrian, Dorian, Lydian, and Mixolydian and more.

The shuffling algorithm used is the Fisher–Yates Shuffle, from lowest index to highest. The note played is the value of the element at the current index in the outer for-loop of the shuffle algorithm.

________

Interested in learning more about algorithms and how to program? Here are some useful and/or classic textbooks that I recommend (these are affiliate links, if you buy one, I get a small commission):

▶ “Algorithms” (4th Edition) by Robert Sedgewick & Kevin Wayne: amzn.to/3uo25xR
▶ “Effective Java” (3rd Edition) by Joshua Bloch: amzn.to/3HOnYJL
▶ “Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming” by Eric Matthes: amzn.to/481jQ43
▶ “Design Patterns: Elements of Reusable Object-Oriented Software” by Erich Gamma, Richard Helm, Ralph Johnson, & John Vlissides: amzn.to/49fpr7R
▶ “Discrete Algorithmic Mathematics” by Stephen B. Maurer & Anthony Ralston: amzn.to/4bmsOvG

#jazz #algorithm #altered #music #musictheory #solo #bird #charlieparker #donnalee #improvisation #bogosort #sortingalgorithm #sorting #visualization #computerscience #programming #code #satisfying #asmr #scrollingscore #transcription #hypnotic #studymusic #focusmusic
Bogosort Sheds Donna Lee Until it Sorts the List4 over 7 Polyrhythm: Try Tapping Along! #music #math #visualization3:4 Polyrhythm with Perfectly Elastic Bouncing Balls #music #math #polyrhythmChat-Controlled Bogosort Music (ChomboSort) | Change the Chords by Typing in Chat2:3 Polyrhythm with Perfectly Elastic Bouncing Balls #music #math #polyrhythmChat-Controlled Bogosort Music Machine (ChomboSort) 🎵 | Change the Chords by Typing in ChatThe Ballad of Bogosort (Bogosort Sheds Autumn Leaves)Sounds of the Collatz Conjecture, Part 2: Generating Raw FrequenciesBogosort Music Machine (ChomboSort) 🎵 | Change the Chords by Typing Commands in Chat(Livestream) Working on a Polyrhythm Visualization (part 4) | Live Coding in Processing (Java)Image of Coltrane Playing Sax does the Giant Steps Changes #midiart #music #algorithm #giantsteps(Livestream) Making YouTube Videos with Code: Bouncing Ball Polyrhythm Visualization Pt. 2 (in Java)

Bogosort Sheds Donna Lee Until it Sorts the List @AlgoMotion

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER