CSD201_-_PE_-_SP_2025_-_Block_5_3859.webp
Lucy_boy1

CSD201_-_PE_-_SP_2025_-_Block_5_3859.webp

☑Kizspy.me
(C,3,6) (D,7,2) (F,4,5) (H,6,3) (1,5,4)

void f30) - Perform breadth-first traversal and find the first node p having color<6, then delete
the node p by copying. Output in the file f3.txt must be the following:
(C,6,3) (D,3,2) (E,7,6) (F,2,4) (G,5,7) (H,4,5)
(C,6,3) (F,2,4) (E,7,6) (G,5,7) (H,4,5)
void f4() - Perform breadth-first traversal and find the first node p having color<6, then rotate p
to right. Output in the file f4.txt must be the following:
(C,6,3) (D,3,2) (E,7,6) (F,2,4) (G,5,7) (H,4,5)
(C,6,3) (F,2,4) (E,7,6) (D,3,2) (G,5,7) (H,4,5)
2
Quesion 3: (2 marks)
In this question you should complete some methods in Graph.java file.
The class Graph is the implementation of a graph. The following methods should be completed:
"
void f1() - Perform depth-first traversal (to the file f1.txt) from the vertex i-3 (the vertex D) but
display 4 vertices from the 3rd vertex to the 6th vertex only. Hint: copy depth(...) to depth 2(...)
and modify the latter one Content of the output film f1 tut must ha
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Share this media

Back
Bên trên Bottom