Using queue implement a complete traversal of all


1. Using queue, implement a complete traversal of all directories on your hard disk and print them on the console. Implement the algorithm Depth-First-Search (DFS) - you may find some articles in the internet.

2. We are given a labyrinth of size N x N. Some of the cells of the labyrinth are empty (θ), and others are filled (x). We can move from an empty cell to another empty cell, if the cells are separated by a single wall. We are given a start position (*). Calculate and fill the labyrinth as follows: in each empty cell put the minimal distance from the start position to this cell. If some cell cannot be reached, fill it with "u".

977_515d7753-85ae-488e-bf69-eab43e2edbef.png

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Using queue implement a complete traversal of all
Reference No:- TGS02140663

Expected delivery within 24 Hours