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

The Ballad of the Funk Shack
The Ballad of the Funk Shack

prog, swamp, funk, blues, male voice bass

Blade/Justice Works
Blade/Justice Works

jrock,anime,female,hardcore

Szó Elsuhan
Szó Elsuhan

pop rhythmic

California's Symphony
California's Symphony

melancholic 80s hard rock progressive

Саморазрушение
Саморазрушение

Alternative metal, dark

la volpe
la volpe

bass trap, hurdy-gurdy, chillstep, orchestra

Miriam Migruje
Miriam Migruje

pop,drop, electronic

Royal Crowns
Royal Crowns

grandiose majestic instrumental rap beat

Valentine
Valentine

Bubblegum pop, EDM, K-pop, Girl group, Cute, Catchy, Bouncy, Upbeat, Bass and drums,

La Chica Bonita
La Chica Bonita

Chicano rock, alternative indie, folk

Eres esclavo de cosas que no existen.
Eres esclavo de cosas que no existen.

Spanish female voice, post-punk, melancolic.

Éh Então
Éh Então

hip hop rhythmic driving beat

Silent Tears
Silent Tears

super slow classic vintage 1970’s texas blues experimental

Risin' Sun Sanctuary
Risin' Sun Sanctuary

gospel cinematic emotional singing electric melody guitar with distortion and wah-wah effect melodic rock, alternative r

Forgotten Love
Forgotten Love

country,sad male voice, pop, upbeat,piano, , acoustic guitar,80s

Neon Dreams
Neon Dreams

futuristic urban glitch synthesizer cyberpunk

Ordinary Hero
Ordinary Hero

electronic,dance-pop,dance,androgynous vocals,lgbt,energetic,party,pop,uplifting,happy

Epicenter of Euphoria
Epicenter of Euphoria

instrumental,hard dance,electronic dance music,emotional,electronic,hardstyle,instrumental,drum and bass,euphoric hardstyle

Ліки Яд
Ліки Яд

tabla jazz lo-fi idm dramatic melody Mix of piano, strings, and electronic elements, Impassioned lead vocal performance