Dab tsi yog kev siv algorithm hauv computer programming?
Dab tsi yog kev siv algorithm hauv computer programming?

Video: Dab tsi yog kev siv algorithm hauv computer programming?

Video: Dab tsi yog kev siv algorithm hauv computer programming?
Video: Qhia Siv Program Ua 3D Animation 2024, Hlis ntuj nqeg
Anonim

A programming algorithm yog a lub computer txheej txheem uas zoo li ib daim ntawv qhia (hu ua tus txheej txheem) thiab qhia koj lub computer precisely yuav ua li cas cov kauj ruam los daws qhov teeb meem los yog mus txog lub hom phiaj. Cov khoom xyaw yog hu ua inputs, hos cov ntsiab lus hu ua outputs.

Kuj nug, dab tsi yog qhov algorithm hauv kev suav?

Ib algorithm yog ib tug txheej txheem zoo uas tso cai rau a lub computer daws teeb meem. Lwm txoj kev los piav txog ib qho algorithm yog ib theem zuj zus ntawm unambiguousinstructions. Qhov tseeb, nws nyuaj rau xav txog ib txoj haujlwm uas koj ua lub computer uas tsis siv algorithms.

Ib tug kuj yuav nug, dab tsi yog algorithm thiab nws ua haujlwm li cas? Ib algorithm , rau cov uas tsis yog-programmers ntawm peb, yog ib txheej ntawm cov lus qhia uas coj ib tug input, A, thiab muab anoutput, B, uas hloov cov ntaub ntawv koom nyob rau hauv tej txoj kev. Algorithms muaj ntau yam kev siv. Hauv kev ua lej, lawv tuaj yeem pab xam cov haujlwm los ntawm cov ntsiab lus hauv cov ntaub ntawv teev tseg, nrog rau ntau yam ntxiv.

Ib yam li ntawd, koj tuaj yeem nug, qhov piv txwv ntawm ib qho algorithm yog dab tsi?

Ib algorithms yog ib kauj ruam los ntawm cov txheej txheem los daws cov teeb meem logical thiab lej. Daim ntawv qhia yog ib qho zoo piv txwv ntawm ib qho algorithm vim nws qhia koj tias koj yuav tsum ua ib kauj ruam zuj zus. Nws siv cov khoom siv (cov khoom xyaw) thiab tsim cov khoom lag luam (cov tais ua tiav).

Vim li cas algorithms tseem ceeb hauv computer science?

Algorithms yog ib heev tseem ceeb lub ntsiab lus hauv Computer Science vim tias lawv pab cov tsim software tsim kom muaj txiaj ntsig zoo thiab ua yuam kev dawb cov kev pab cuam. Feem ntau tseem ceeb yam yuav tsum nco ntsoov txog algorithms yog tias muaj ntau yam sib txawv algorithms rau tib qho teeb meem, tab sis qee qhov zoo dua li lwm tus!

Pom zoo: