Skip to content

Improve the python implementation of some search algorithms #1068

Description

@codefeeder

Issue Type

Code improvement

Changes

Returning the complete path from the root node to the goal node from existing functions for search algorithms in search.py

Descriptions

The current recursive and iterative algorithms for breadth-first search, depth-first search, etc. only returns the node or None when goal node is found or not found respectively.
I propose to improve the algorithm to return the complete path from the start node to the goal node in case a path is found otherwise return None.

I also propose to modify driver functions accordingly.

@MrDupin may I work on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions