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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

pojith
Copy link
Contributor

@pojith pojith commented Mar 25, 2024

No description provided.

Signed-off-by: pojith raj R <126692672+pojith@users.noreply.github.com>
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 added 8 commits May 2, 2024 09:53
Signed-off-by: pojith raj R <126692672+pojith@users.noreply.github.com>
Update Breadth-First Search (BFS) Searching .java
Signed-off-by: pojith raj R <126692672+pojith@users.noreply.github.com>
Signed-off-by: pojith raj R <126692672+pojith@users.noreply.github.com>
Signed-off-by: pojith raj R <126692672+pojith@users.noreply.github.com>
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.

None yet

2 participants