Video: Dab tsi yog asymptotic notation piav qhia qhov loj 0 cim?
2024 Tus sau: Miles Stephen | [email protected]. Kawg hloov kho: 2023-12-15 23:36
Loj-O . Loj-O , feem ntau sau li O , yog ib Asymptotic Lus Cim rau qhov phem tshaj plaws, los yog qab nthab ntawm kev loj hlob rau ib tug muab functionality. Nws muab rau peb nrog ib tug asymptotic Upper khi rau txoj kev loj hlob tus nqi ntawm lub runtime ntawm ib tug algorithm.
Ib yam li ntawd, tib neeg nug, koj txhais li cas los ntawm Big O notation?
Big O notation yog siv hauv Computer Science los piav txog qhov kev ua tau zoo lossis qhov nyuaj ntawm cov algorithm. Loj O tshwj xeeb piav txog qhov xwm txheej phem tshaj plaws, thiab ua tau siv los piav txog lub sijhawm ua tiav uas yuav tsum tau ua lossis qhov chaw siv (piv txwv li hauv nco lossis hauv disk) los ntawm algorithm.
Vim li cas Big O notation tseem ceeb? Big O notation tso cai rau koj los soj ntsuam algorithms ntawm tag nrho cov efficiency thiab scaleability. Nws abstracts deb qhov kev txiav txim tsis tu ncua nyob rau hauv kev ua tau zoo uas tuaj yeem sib txawv ntawm lub platform, lus, OS kom tsom mus rau qhov ua tau zoo ntawm cov algorithm thiab nws txawv li cas raws li qhov loj ntawm cov tswv yim.
Yog li ntawd, yog Big O notation yog qhov phem tshaj?
Txawm tias loj o notation tsis muaj dab tsi ua nrog lub qhov phem tshaj plaws tsom xam, peb feem ntau sawv cev rau qhov phem tshaj plaws los ntawm loj o notation . Yog li, Hauv kev tshawb nrhiav binary, qhov zoo tshaj plaws cas yog O (1), nruab nrab thiab qhov phem tshaj plaws yog O (logn). Hauv luv luv, tsis muaj kev sib raug zoo ntawm hom loj O yog siv rau qhov phem tshaj plaws , Theta rau nruab nrab cas ”.
Qhov loj O thiab me me O cim yog dab tsi?
Loj - O yog ib tug inclusive Upper bound, thaum me ntsis - o yog ib tug nruj kev cia siab. Piv txwv li, txoj haujlwm f(n) = 3n yog: hauv O (n²), o (n²), thiab O (n)
Pom zoo:
Dab tsi yog qhov txawv ntawm qhov pom tseeb qhov loj thiab qhov ntsuas qhov ntsuas qhov tseeb?
Dab tsi yog qhov txawv ntawm qhov pom tseeb thiab qhov tseeb? Pom meej qhov loj npaum li cas yog qhov ci ntawm lub hnub qub tshwm los ntawm lub ntiaj teb thiab nyob ntawm qhov ci thiab qhov deb ntawm lub hnub qub. Qhov loj npaum li cas yog qhov ci ntawm lub hnub qub yuav tshwm sim los ntawm tus qauv nyob deb
Qhov txawv ntawm qhov loj ntawm ib tug proton thiab qhov loj ntawm ib tug electron yog dab tsi?
Protons thiab neutrons muaj kwv yees li qub, tab sis lawv yog ob qho tib si loj dua li cov hluav taws xob (kwv yees li 2,000 npaug loj li electron). Tus nqi zoo ntawm ib qho proton yog sib npaug hauv qhov loj rau qhov tsis zoo ntawm tus electron
Dab tsi yog qhov kev piav qhia rau Mercury lub cim lobate scarps?
Qhov saum npoo ntawm Mercury muaj daim av uas qhia tias nws cov crust yuav tau cog lus. Lawv ntev, sinuous pob tsuas hu ua lobate scarps. Cov caws pliav no zoo li yog qhov nthuav tawm ntawm qhov tsis ncaj ncees, qhov twg lub pob zeb tawg nrog lub dav hlau inclined thiab thawb mus. Dab tsi ua rau Mercury lub crust shrink?
Dab tsi yog qhov yuam kev loj tshaj plaws yog tias Irina ntsuas qhov ntev ntawm nws lub qhov rais li 3.35 feet qhov yuam kev loj tshaj plaws yog taw?
Kev daws: Qhov yuam kev loj tshaj plaws hauv kev ntsuas ntsuas tau txhais tias yog ib nrab ntawm qhov ntsuas ntsuas
Dab tsi yog qhov kev piav qhia zoo tshaj plaws ntawm lub ntiaj teb nebula yog dab tsi?
Planetary nebula yog ib qho khoom siv hnub qub uas muaj lub plhaub ci ntsa iab ntawm cov pa roj thiab cov ntshav uas tsim los ntawm qee hom hnub qub thaum kawg ntawm lawv lub neej. Lawv nyob rau hauv qhov tseeb tsis cuam tshuam rau cov ntiaj chaw; lub npe originates los ntawm ib tug supposed zoo sib xws nyob rau hauv tsos rau giant ntiaj chaw