Skip to content
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 best first search #254

Merged
merged 4 commits into from
Dec 23, 2022
Merged

Conversation

pradkrish
Copy link
Contributor

Closes #239
Implement best first search algorithm and tests.
@ZigRazor This is my first PR and it's not complete yet. I am working on the documentation and I am happy to get some early feedback, thanks.

@github-actions github-actions bot added core something about core test Something about test labels Dec 21, 2022
@ghost
Copy link

ghost commented Dec 21, 2022

👇 Click on the image for a new way to code review
  • Make big changes easier — review code in small groups of related files

  • Know where to start — see the whole change at a glance

  • Take a code tour — explore the change with an interactive tour

  • Make comments and review — all fully sync’ed with github

    Try it now!

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

@ZigRazor
Copy link
Owner

Good Work, as you implement also the documentation section I will merge the PR.

Thank you so much!

@ZigRazor ZigRazor self-requested a review December 22, 2022 06:54
@ZigRazor ZigRazor self-assigned this Dec 22, 2022
@ZigRazor ZigRazor added this to the Algorithm Implementation milestone Dec 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2022

Codecov Report

Merging #254 (f79495e) into master (c9ab362) will decrease coverage by 0.07%.
The diff coverage is 95.48%.

@@            Coverage Diff             @@
##           master     #254      +/-   ##
==========================================
- Coverage   96.95%   96.87%   -0.08%     
==========================================
  Files          47       48       +1     
  Lines        5740     5895     +155     
==========================================
+ Hits         5565     5711     +146     
- Misses        175      184       +9     
Flag Coverage Δ
unittests 96.87% <95.48%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
include/Utility/Typedef.hpp 100.00% <ø> (ø)
include/Graph/Graph.hpp 93.16% <81.08%> (-0.43%) ⬇️
test/BestFirstSearchTest.cpp 100.00% <100.00%> (ø)
include/Partitioning/WeightBalancedLibra.hpp 75.00% <0.00%> (-6.95%) ⬇️
include/Partitioning/EBV.hpp 89.55% <0.00%> (-2.99%) ⬇️
include/Partitioning/GreedyVertexCut.hpp 89.79% <0.00%> (+5.10%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@pradkrish
Copy link
Contributor Author

Good Work, as you implement also the documentation section I will merge the PR.

Thank you so much!

Thank you for approving it. I have added the documentation now but it keeps failing at the static code analysis step. do you have any idea why? 🤔

@ZigRazor
Copy link
Owner

@pradkrish Don't worry about the static code analysis, we will fix it before next release.

Now or we open a new issue for the documentation on the readme of the algorithm or you can complete it in this PR.

How you prefer?

@pradkrish
Copy link
Contributor Author

pradkrish commented Dec 23, 2022

@pradkrish Don't worry about the static code analysis, we will fix it before next release.

Now or we open a new issue for the documentation on the readme of the algorithm or you can complete it in this PR.

How you prefer?

Thanks, I wouldn't mind adding it now. Are you referring to README at the project's root directory?

@ZigRazor
Copy link
Owner

Yes, the README in the root directory.
So you want to merge this PR and then open a new issue for README Documentation?

@pradkrish
Copy link
Contributor Author

So you want to merge this PR and then open a new issue for README Documentation?

Yeah that's not a bad idea. I can push another PR later today updating the README. This can be merged for now, thanks. :)

@ZigRazor ZigRazor merged commit 5828120 into ZigRazor:master Dec 23, 2022
ZigRazor added a commit that referenced this pull request Mar 21, 2023
* introduce topological sort for graph (#247)

* implement topological sort based on dfs
* add benchmark for topological sort
* add basic test for topological sort

Co-authored-by: suncanghuai <suncanghuai@gmail.com>

* Fix typo in link specification (#248)

This PR removes an additional space character between link text and link URL, which caused faulty formatting of the README.md file.

* introduce WeightBalancedLibra algorithm(vertex-cut graph partition) (#249)

* implement WeightBalancedLibra algorithm based on paper pseudocode
* add weight-related apis for class CoordinatedPartitionState
* adjust set operations of class CoordinatedRecord
* append a testcase in PartitionTest.cpp for WB-Libra

Co-authored-by: suncanghuai <suncanghuai@hesaitech.com>

* Update README.md

* Update README.md

* Install the CodeSee workflow. Learn more at https://docs.codesee.io (#250)

Co-authored-by: codesee-maps[bot] <86324825+codesee-maps[bot]@users.noreply.github.com>

* * implement multi-thread bfs (#252)

* add testcases for multi-thread bfs(in BFSTest.cpp)
* add benchmark for multi-thread bfs(in BFS_BM.cpp)

Co-authored-by: suncanghuai <suncanghuai@gmail.com>

* Update Readme Roadmap

* Implement best first search (#254)

* first implementation and tests

* add docs and minor changes

* minor change

* minor change

* Update README.md

* Update README.md

* Include best first search test (#258)

* Update README for best first search algorithm (#257)

* Update README for best first search algorithm

* minor change

* minor change

* minor review changes

* Implement kahn's algorithm for topological sorting (#259)

* Improved return type for Kosaraju's algoritm + tests (#260)

* custom return type for kosaraju()

* Tests for Kosaraju's algorithm

* fixed minor issues

* fixed merge issue

* Update Road Map

* Update README.md

* Reworked Cmake

Signed-off-by: GitHub <noreply@github.com>

* Add partition Example ( HDRF )

Signed-off-by: GitHub <noreply@github.com>

* Corrected Partition Class
Fix #263

Signed-off-by: GitHub <noreply@github.com>

* Update Readme for Roadmap

Signed-off-by: GitHub <noreply@github.com>

* Corrected Cmake for old Example

Signed-off-by: GitHub <noreply@github.com>

* Update cmake.yml

* Update benchmark_pr.yml

* Update benchmark.yml

* Update Code_Coverage.yml

* Correction for Graph.hpp

Signed-off-by: GitHub <noreply@github.com>

* Update Code_Coverage.yml

Parallel compilation

* Update benchmark.yml

parallel compilation

* Update benchmark_pr.yml

parallel compilation

* Update cmake.yml

parallel compilation

* Update codeql-analysis.yml

remove useless steps:
- manually installed google test and benchmark

* Create .github/workflows/super-linter.yml

Added Super-Linter

* Update super-linter.yml

* Create .clang-format

* Reformatted Files
with clang-format with syle "Google"

Signed-off-by: GitHub <noreply@github.com>

* Delete super-linter.yml

* Create .github/workflows/codeql.yml

* Delete codeql-analysis.yml

* Update README.md

* Create .github/workflows/codacy.yml

* Create .github/workflows/snyk-security.yml

* Update snyk-security.yml

* Delete snyk-security.yml

---------

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: ARockHammer <37604654+SunCangHuai@users.noreply.github.com>
Co-authored-by: suncanghuai <suncanghuai@gmail.com>
Co-authored-by: David Chocholatý <chocholaty.david@protonmail.com>
Co-authored-by: suncanghuai <suncanghuai@hesaitech.com>
Co-authored-by: codesee-maps[bot] <86324825+codesee-maps[bot]@users.noreply.github.com>
Co-authored-by: Pradeep Krishnamurthy <pradkrish84@gmail.com>
Co-authored-by: David Sapienza <david.sapienza@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core something about core test Something about test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add The best First Search algorithm
3 participants