Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

algorithm for bfs searching #960

Closed
wants to merge 10 commits into from
Closed

Conversation

pojith
Copy link
Contributor

@pojith pojith commented Mar 25, 2024

No description provided.

pojith added 2 commits March 25, 2024 21:41
Create Breadth-First Search (BFS) Searching.java
Copy link
Contributor

@oxBinaryBrain oxBinaryBrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The code assumes valid input from the user. It would be beneficial to add input validation to handle cases where users might input invalid values or edges (e.g., negative vertices, vertices beyond the specified range).
  2. Error handling is minimal. Consider implementing exception handling to handle runtime exceptions gracefully. For instance, when accessing the adjacency list, it's assumed that the index is valid. Adding checks for out-of-bounds access would make the code more robust.

@pojith
Copy link
Contributor Author

pojith commented Mar 26, 2024

  1. The code assumes valid input from the user. It would be beneficial to add input validation to handle cases where users might input invalid values or edges (e.g., negative vertices, vertices beyond the specified range).
  2. Error handling is minimal. Consider implementing exception handling to handle runtime exceptions gracefully. For instance, when accessing the adjacency list, it's assumed that the index is valid. Adding checks for out-of-bounds access would make the code more robust.

i will check

@pojith pojith closed this by deleting the head repository Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants