CSD201_-_PE_-_FA_2023_-_NT_1301.webp
D

CSD201_-_PE_-_FA_2023_-_NT_1301.webp

void 14() - Print all internal nodes of the tree. Output in the file 14.txt must be the following:(line 1: pre-order traversal, line 2: internal nodes (by pre-order traversal))
(W,6,2) (Q,1,4) (Κ,5,2) (L,4,8) (Μ,3,9) (Ν,9,5) (Α,7,-3)
(W,6,2) (Q,1,4) (Κ,5,2) (L,4,8) (Ν,9,5)
void f5() - Suppose p is the 2nd node when performing the pre-order traversal of the tree. Delete the node p by copying. Output in the file f5.txt must be the following:(line 1: pre-order traversal, line 2: pre-order traversal (deleted 2nd)):
(K,7,9) (D,4,3) (H,2,6) (L,1,5) (Q,3,1) (C,6,-4) (6,9,-6) (Μ,8,7)
(K,7,9) (Q,3,1) (Η,2,6) (L,1,5) (C,6,-4) (6,9,-6) (Μ,8,7)
Zoom
+ 150%
Close

Chưa có bình luận nào.

Thông tin

Category
CSD201
Thêm bởi
dinhhoa305
Ngày thêm
Lượt xem
1,831
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_PE_-_FA_2023_-_NT_1301.webp
File size
60.1 KB
Dimensions
1552px x 700px

Share this media

Back
Bên trên Bottom