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

Belle Isabelle
Belle Isabelle

French History Adventure dreams

LLAMA
LLAMA

llama, catchy, house

Shrek is LOVE, Shrek is LIFE.
Shrek is LOVE, Shrek is LIFE.

male vocalist,hip hop,rap,hip-hop,hardcore hip hop,vulgar,angry,aggressive,comedy rap,dark,misanthropic,playful

Grocery Store Blues
Grocery Store Blues

Brutal Fractured World Doom Ethereal Tuvan Throat Phonk Metal Spectral Cosmic Grime Infinite Spectrum Math Reggae Drill

Lost in the City
Lost in the City

Pagan Metal, Sympho Black Metal, Goth Metai

Love VS Hate
Love VS Hate

soft ballad, emotional, heart felt, epic

 Something in the way, Nirvana (Remix)
Something in the way, Nirvana (Remix)

Soundtrack Horror cinematic grunge music, Church organ, violino, cello, guitar grunge

Golden Days
Golden Days

Nostalgic, Acoustic Pop, Reflective, Singer-Songwriter male

Туда, где белые снега и фрукты гроздьями
Туда, где белые снега и фрукты гроздьями

Soviet, bard, acoustic guitar, male singer, singer-songwriter, USSR

Surge
Surge

drum and bass edm energetic

Mangeons Ensemble
Mangeons Ensemble

pop acoustic

Pearls of My World
Pearls of My World

male vocalist,rock,folk pop,folk,contemporary folk,folk rock,melodic,bittersweet,mellow,sentimental

The Dragon's Journey
The Dragon's Journey

A heavy Krink Rock bass boosted heavy Rock Metal Dubstep song

Summer Love
Summer Love

dance-pop kpop

Heartache Serenade 【心の痛みのセレナーデ】
Heartache Serenade 【心の痛みのセレナーデ】

J-Rock, anime ending, Stong female voice, High quality, masterpiece, SAD

Tahona y vientre
Tahona y vientre

Pop-rock, Spain Accent, flauta, violin, clarinete, sensual voice, male vocals

i cast quit
i cast quit

Prog Disco

圆圆曲(吴伟业)
圆圆曲(吴伟业)

Powerful dark orchestral trailer, female vocal