Cov txheej txheem:
Video: Dab tsi yog cov qauv ntaub ntawv hauv JavaScript?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
Tam sim no muaj cov ntaub ntawv hauv qab no uas tau them rau:
- Linked List.
- Daim ntawv.
- Pob.
- Hash Table.
- Heap.
- Qhov tseem ceeb Queue.
- Sim.
- Tsob Ntoo (Binary Search Tree, AVL Ntoo)
Ntawm no, plaub cov ntaub ntawv tsim nyog hauv JavaScript yog dab tsi?
Cov plaub hom ntawm cov ntaub ntawv yooj yim txhawb los ntawm JavaScript yog: array lists, maps, records and JSON tables.
Tom qab ntawd, lo lus nug yog, JavaScript algorithm yog dab tsi? Ib algorithm yog ib qho kev qhia tsis meej ntawm yuav ua li cas los daws cov teeb meem hauv chav kawm. Nws yog ib txheej ntawm cov cai uas precisely txhais ib theem zuj zus ntawm kev khiav hauj lwm. Tus nab npawb Fibonacci - javascript - algorithms /tree/master/src/ algorithms /math/fibonacci.
Kuj paub, dab tsi yog hom ntaub ntawv hauv JS?
Muaj rau hom ntaub ntawv yooj yim hauv JavaScript uas tuaj yeem muab faib ua peb pawg tseem ceeb: thawj (lossis thawj), sib xyaw (lossis siv), thiab hom ntaub ntawv tshwj xeeb. Txoj hlua, Number, thiab Boolean yog cov ntaub ntawv tseem ceeb. Object, Array, thiab Function (uas yog txhua hom khoom) yog cov ntaub ntawv sib xyaw.
Cov ntaub ntawv qauv txhais li cas?
A cov ntaub ntawv qauv yog ib hom ntawv tshwj xeeb rau kev npaj, ua, khaws cia thiab khaws cia cov ntaub ntawv . Thaum muaj yog ob peb yam yooj yim thiab advanced qauv hom, ib cov ntaub ntawv qauv yog tsim los npaj cov ntaub ntawv kom haum ib lub hom phiaj kom nws ua tau nkag mus thiab ua haujlwm nrog rau txoj hauv kev tsim nyog.
Pom zoo:
Cov ntaub ntawv hom thiab cov qauv ntaub ntawv yog dab tsi?
Cov qauv ntaub ntawv yog ib txoj hauv kev piav qhia txog ib txoj hauv kev los npaj cov ntaub ntawv kom ua haujlwm andalogrithms tuaj yeem siv tau yooj yim dua. Ib hom ntaub ntawv piav qhia txog cov ntaub ntawv uas txhua tus sib koom ua ke. Piv txwv li tus lej cov ntaub ntawv hom piav qhia txhua tus lej uas lub khoos phis tawj tuaj yeem ua tau
Dab tsi yog cov ntaub ntawv hloov pauv hauv cov ntaub ntawv khaws cia?
Cov ntaub ntawv hloov pauv yog cov ntaub ntawv uas tau tsim nyob rau hauv daim ntawv thov kev sib ntsib, uas tsis tau khaws cia hauv cov ntaub ntawv tom qab daim ntawv thov raug txiav
Vim li cas kem taw qhia cov ntaub ntawv khaws cia ua cov ntaub ntawv nkag ntawm disks sai dua li kab qhia cov ntaub ntawv khaws cia?
Kem oriented databases (aka columnar databases) yog qhov tsim nyog rau kev ntsuas kev ua haujlwm ntau dua vim tias cov ntaub ntawv hom ntawv (kem hom) qiv nws tus kheej kom nrawm dua cov lus nug ua - scans, aggregation thiab lwm yam. Ntawm qhov tod tes, kab oriented databases khaws ib kab (thiab tag nrho nws. kab) contiguously
Dab tsi yog qhov sib txawv ntawm cov qauv siv nyob rau hauv cov ntaub ntawv ntawm cov khoom oriented qauv?
Cov qauv tseem ceeb ntawm cov qauv uas siv rau hauv cov khoom siv yog: Siv cov qauv qauv, Cov qauv qauv (zoo li qub) cov qauv, Cov qauv coj tus cwj pwm (dynamic) khoom qauv
Dab tsi yog cov teeb meem ntawm kev tswj cov ntaub ntawv hauv cov ntaub ntawv ib txwm muaj?
Nyob rau tib lub sijhawm, qhov kev tswj hwm cov ntaub ntawv ib puag ncig tsim teeb meem xws li cov ntaub ntawv rov ua dua thiab tsis sib xws, cov kev pab cuam-cov ntaub ntawv dependence, inflexibility, tsis muaj kev ruaj ntseg, thiab tsis muaj cov ntaub ntawv sib qhia thiab muaj