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

My Beloved
My Beloved

Acoustic, double bass, inspiring, melodic, acoustic guitar, violin, mutation funk, emotional

Vì Ai Khóc
Vì Ai Khóc

pop haunting piano-driven

These people
These people

talking, echo voice, woman voice

Dance Through the Tears
Dance Through the Tears

female vocalist,pop,k-pop,electronic,dance-pop,dance,energetic,electropop,uplifting,party,mellow,punk pop

Смелость строит города v0.2
Смелость строит города v0.2

Catchy Instrumental intro, epic, power metal, heavy metal, ballad, fast paced, major, masculine low vocal

Haunted Shadows
Haunted Shadows

rock electric eerie

Electrenergy
Electrenergy

Xylophone, rhythmic techno, uplifting

上邪
上邪

Powerful dark orchestral trailer, female vocal, Chinese Drum, Cello, Slow, deep, emotional heartfelt, strong Bassline

Теплый Вечер
Теплый Вечер

лирический мелодичный акустический рэп

Dreaming to the Stars
Dreaming to the Stars

ambient soft dreamy

Broken Memories
Broken Memories

Heavy metal, rap, drum and bass, glitch, scratch, power metal

Зачем я нужен
Зачем я нужен

rhythmic rap-rock hip-hop

Change Now
Change Now

Fast, gritty 140 bpm, raw electric guitar riffs, aggressive drum beats, male vocals, urban surf vibe, edgy, rebellious

Jump
Jump

live music melodic nu rap metal, melodic gothic metal hip hop, dingo bingo

Breaking the rule
Breaking the rule

psychedelic melodic rock, indie, alternative

Under the Summer Sun
Under the Summer Sun

flamenco, bossa nova, electric piano

Sudan Sudan
Sudan Sudan

Industrial Pop Sunda