«mö{¤¯K
ɲÆ1¥Æ 3X
y3·5y²ù{mE,Ý´O(log n)µ
Ïcü«¹´ª^§k31 n«¹¬UY4§qÏ
ãäz!:Efêk2§¤±cü«¹!:êج1
n«¹ü§Ïd·IÄ1n«¹E,Ý="
Äãäz0£=z|ÝÓ!:¤§w,ù0¤k!:
¤L«m´pØ2§·rùA«mUìà:üS"
Äί«m[L, R]§w,3üS0§Î¯«m2¤k«meI´
ëYã§3ùã¥kà«mmà«mâ kU÷v^
n"
ÏãäÝ´O(log n)§z0kO(1)!:÷v^n§¤±
ù{mE,Ý´O(log n)"
3ãäþ½A«m[L, R]0§·IrùA!:&E¿å5§
ÒYA"
2.2.3 «m?U
éu«m?U§·g,ØU^ü:?U{8å?Uz«m§
ùÒÚ\BIPVgA"
±«m\~Þ~§·éãä¥z!:i§ÑP¹BIPA
i
§
L«!:i¤L«m¥¤kêÑ\þAA
i
"
y3kö§I[L, R]\þx" ·k3ã䥽ù«m§
,0ù«mþBIPx§äN5ùÒ´rA
i
\þx¿#ù!:«m
£\þ«m2¦þx¤§,0#§¤kI!:&E"
ØJuy§éuãä¥?¿!:§k8§¤kyk!: I
PÑ´0§§¤P¹&Eâ´(" ÏdÃØ´?Uö´Î¯
ö§¯z!:§ÑATòù!:IPeD§f
¥" 1i!:?1IPeD8u§EfmEfþBIPA
i
§¿
rA
i
""
mE,Ý«mίӧ´ügO(log n)"
BIP^?~§IP± ¿! 3þIP±¯
#ãä!:&E§@oÒU¦^ãäo§~X«m\~ί«m!
«mCXί«m! «mCXί«mgcd" 2´Ó§3Û5§
2016c&EÆc¥II[èÀèAØ©
102