Merge Sort

rap song

June 14th, 2024suno

Lyrics

Sorting algorithms, they are cool, We've already learned one simple rule. Now we have a new contender, This thing is called "merge sort" (the mender). First, you split the array in half, Do the same for the other halves. Repeat until you find yourself, With lengths of one, no more splits left. Merge each half by doing these steps: Have two pointers: a and b, "A and b?" you ask; you'll see. a is the first element of the first half, b is the first of the second half. Find which element is smaller, If a is smaller, don't growl or holler: Put it in something, Called an "auxiliary listing." Auxiliary lists are extra lists, They affect space complexities. Now what you need to do, Is move element a to the list anew. Move a to the right, now time for b: If b's smaller, you'll agree, Do the same as with element a, Put it in the auxiliary array. Move b to the right, repeat the stride, When one ends, the rest slides inside. After that, copy the auxiliary list, Back to the main list; don't resist. Repeat until all halves are done, What you've seen is sorting fun. The list is sorted, now you're free, Next time we'll learn more algorithms, you'll see.

Recommended

Nut phonk
Nut phonk

Drift phonk, brazillian phonk hard

Moonlit Rain
Moonlit Rain

lofi ambient dreamy

Who Can Compete 2
Who Can Compete 2

male vocal, bang sound, funky rock, guitar, bass, drum, saxophone

Coeur d'Alene
Coeur d'Alene

dreamy melodic pop

Nuclear Swing
Nuclear Swing

swing jazzy retro

Hills of Mist
Hills of Mist

Folk metal, melancholic, 140 bpm, Female, harpsichord, mandolin, Explosive chorus

Empire of Steel
Empire of Steel

industrial-metal anime opening empowering clear voice

Ripples
Ripples

pop, Dance, techno,rhythmic violin, danceable beats, call-and-response elements, male vocals

No Looking Back
No Looking Back

female, melodic beats

Dinosaur Heart
Dinosaur Heart

pop rock anthemic

autopilot
autopilot

groovy rap

Crazy Crazy
Crazy Crazy

Glitchcore, static vocals, bass drops, 808s

AI明星的崛起
AI明星的崛起

World music, powerful, Orchestral , Nostalgic, Hopeful, 100 BPM, Male vocal, atmospheric, rock

Stars and Dreams
Stars and Dreams

alternative rock

Nonsense [v3.5]
Nonsense [v3.5]

hybrid between nintendo music and chinese music, catchy, upbeat, fast pace

Scat Slit Drum
Scat Slit Drum

VOCALOID Slit Drum, pop edm

Forest Dreams
Forest Dreams

Male vocals, dark, Electro, K-pop, RnB, bass, atmospheric, folk style voice, soul