-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement the Special Graphs and basic algorithms for them #9
Comments
@yashrsharma44 @Biswajitghosh98 Can i work on the traversal in Trees and the Eulerian part? |
@yashrsharma44 @Biswajitghosh98 Can I work on the algorithms to implement Bipartite and Directly Acyclic Graph? |
@130sayan @anishsofat Assigned. All the best ! |
@Biswajitghosh98 bfs and dfs have already been done for graphs. Should I do separately for Trees? |
@130sayan look up Morris Traversal and implement it on Binary Trees (directed) |
@130sayan you need to add inorder/preorder/postorder/levelorder for trees. You can use the existing dfs/bfs for your reference |
@Biswajitghosh98 I have to check Eulerian for directed or undirected? |
@130sayan An Eulerian circuit can be made on both directed and undirected graphs. Considering the graph directed would cover both the cases. |
@Biswajitghosh98 I have submitted a pull request for Bipartite Graph. In "Directly Acyclic Graph", is directly same as directed? |
@anishsofat yes. Let me have a look |
docs: add codewithvk as a contributor
@yashrsharma44 @Biswajitghosh98 is it necessary to use morris traversal for various traversals or can I use Stack or recursion? |
I would suggest you to implement a Morris traversal separately, and for tree traversals, use stack. |
@130sayan Morris Traversal is special in a sense that it takes O(1) space while stack or recursion call stack takes up O(logn) |
@yashrsharma44 I think using Morris for inorder and pre-order would be nice instead of a separate implementation. What do you think ? |
Let's move ahead with @Biswajitghosh98 idea |
Ok. Thank you |
Implement all types of traversal for -
Implement an algorithm to detect if a graph is -
The text was updated successfully, but these errors were encountered: