Bi tp Cu Trc d liu
Bi tp cơ bản:
!"
#$"#%&#'("#%)*
+ ,#-##$-#./#"#$-#..0("
#$-#.1#%
a. 2345#$
b. 2-667(8#9#$
c. 2:;67(8#9'.<#$
d. 2=6.6-##$>-?$!
$@'AB
$@B##
$@C0#D
$@#%-#@8-#
$@?#(A/#%8-#
$@#%-#@B##
$@#%-#@C0#D
$@?#(A/#%B##
' $@?#(A/#%C0#
E F6'G#H#%#ID#G(D#
'0J.H#%JKL
a. M@#
b. M@#;#%D#
c. M@#;#%+D#
d. M@#;.;#</#'%N$9OP3L
e. M@#;.;B#/#'%N$9OP3L
f. M@#;.;B#/#'#</#OP3L
g. QID
h. R#N#48#%6SLS.ID
i. R#N#>STU8#%V#8#%S2ID
QIL
j. 3W6'>6;(NDD#CX#%##.H#%
k. =66S;#Q##
l. M0(D
m. 3W6D;(N#D.H#%
(CNPTK: cây nh phân tm kim.)
Y ,#-#D#G(D#=6.6D#G(D#D#CX#%LS
$@#%-#
a. 2345D
b. 2-667(8#9D
c. 2:;67(8#9'.<D
d. 2=6.6-#D>-?$!
$@'AB
$@B##
$@C0#D
$@#%-#@8-#
$@?#(A/#%8-#
$@#%-#@B##
$@#%-#@C0#D
$@?#(A/#%B##
' $@?#(A/#%C0#
Z A/#%=#[/$@"CX#%$.
\ =6#GI67$@!]#%J.H#%]#%J
^ _#`$>($!;O#%AaJG#T$b(WCX#%S#%
#%1#%1#%#%AaS,J#1#%1#"c(#%#%d5.
U#%#%Aa8#A)#%.<1#%1#F#Q=6STU#%#%AaCG
%
F?e!Ofg",fZ=STZ""^"Y"E"\"g"+"h
iA/#%=#%NJC#`$>($
h Dùng cây nhò phân tìm kiếm để quản lý các điểm trong 2D: tìm kiếm,
thêm, bớt, tạo cây, hủy cây, lưu dữ liệu xuống file, đọc dữ liệu từ file lên
cây.
g ,7#$$#-#A)[SACX#%#$-#."
67(8#9C%j6#(8##A$
#MASO
KHOTEN
kDIEMTOAN, DIEMVAN, DIEMLY
F6T#S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