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

Весеннее
Весеннее

electro swing, rap, dubstep, horror, brostep, sampled, unusual, dark, fast

DREAMS
DREAMS

acoustic dream pop

Sad Why You Ain't Bad
Sad Why You Ain't Bad

funk, pop, upbeat, deep, rap, phonk

Lost in the Neon Jungle
Lost in the Neon Jungle

nu funk, jazz, synth pad, electronic, melodic, progressive

Chased Dreams
Chased Dreams

electric infectious rock grungy

In Love with Myself
In Love with Myself

acoustic future bass. female vocalist. synth-heavy.

Bound by Love not Fear
Bound by Love not Fear

Death Metal with acoustic and soft vocals

Shadows of Deception
Shadows of Deception

villain music ominous choir cinematic orchestra

Ὁ τόπος μας εἶναι κλειστός
Ὁ τόπος μας εἶναι κλειστός

pompous solemn arabesque urban *hiphop* in staccato w/ a Greek folk music flavor (clarinets,. flutes)

時には
時には

Heavy metal, heavy metal bands, world-weary songs, let out your high spirits

Gone but Never Fading
Gone but Never Fading

pop rock acoustic somber

Data Nightmare
Data Nightmare

black metal cyberpunk

Eyes of Shadow
Eyes of Shadow

Witch house, polyrhythmic, dark atmosphere

Depressionen
Depressionen

emotional upbeat pop female voice orchestral, ethereal piano

Witching Hour Glory
Witching Hour Glory

female vocalist,hip hop,pop rap,trap,boastful,energetic,cool

A Little Lonely [V1] [ALT 3]
A Little Lonely [V1] [ALT 3]

Yacht Rock, Anthemic, Emotion, Stomp, Funky

Viento de Libertad
Viento de Libertad

funk rítmico energético

마법의 사랑
마법의 사랑

electro-pop, bangrah, catchy, male voice, electro elements, high

THE PARIS CATACOMBS
THE PARIS CATACOMBS

dark ambient or atmospheric folk. atmospheric sounds, and ethereal vocals,