Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added flowcharts for Search Algorithms. #6522

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

Closed

Conversation

Copy link

@MrunaliniPachpute MrunaliniPachpute commented Sep 8, 2025

📌 Description

This PR adds flowcharts for Binary Search and Linear Search algorithms as part of issue #6472 (Add Flowcharts for Algorithm Understanding).

These are the first contributions (Searching algorithms) to confirm the format, design, and folder structure.
If the format looks good, I would be happy to continue adding flowcharts for other algorithms gradually.


🎨 Flowchart Design Details

  • Color Coding:

    • 🟩 Start/End: Light green ovals
    • 🟪 Input/Output: Purple parallelograms
    • 🟦 Process/Assignment: Blue rectangles
    • 🔺 Decision/Condition: Red diamonds
    • 🟧 Complexity Notes: Orange rectangle (time & space complexity)
  • Shapes Used:

    • Oval → Start/End points
    • Parallelogram → Input/Output operations
    • Rectangle → Processing steps (e.g., setting pointers, updating indices)
    • Diamond → Decision-making conditions (e.g., low > high?, arr[mid] == target?)

This ensures consistent and beginner-friendly flowcharts across algorithms.


📂 Files Added

  • flowcharts/searching/Binary_Search.png
  • flowcharts/searching/Linear_Search.png

✅ Checklist

  • Flowcharts follow the proposed folder structure
  • Clear color coding and standardized shapes
  • Complements the existing algorithm implementations

🔗 Related Issue

Part of #6472


Please review the format and let me know if I can be assigned to continue adding flowcharts for the remaining algorithms.

BINARY_SEARCH LINEAR_SEARCH

Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.13%. Comparing base (f0437fe) to head (e7e920a).

Additional details and impacted files
@@ Coverage Diff @@
## master #6522 +/- ##
============================================
+ Coverage 75.12% 75.13% +0.01% 
 Complexity 5578 5578 
============================================
 Files 686 686 
 Lines 19327 19327 
 Branches 3734 3734 
============================================
+ Hits 14520 14522 +2 
+ Misses 4245 4244 -1 
+ Partials 562 561 -1 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

DenizAltunkapan commented Sep 8, 2025
edited
Loading

Thanks for your effort! As mentioned in the PR discussion of #6518 , GIFs or flowcharts aren’t wanted in this repository. Please refer to the messages in the PR #6518 for details.

If you’re still interested in creating such diagrams, you’d need to contact the org owners and start a discussion on the TheAlgorithms Discord.
Thank you for your understanding.

Copy link
Author

Thank you for the clarification, @DenizAltunkapan Sir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@DenizAltunkapan DenizAltunkapan Awaiting requested review from DenizAltunkapan DenizAltunkapan is a code owner

@yanglbme yanglbme Awaiting requested review from yanglbme yanglbme is a code owner

@alxkm alxkm Awaiting requested review from alxkm alxkm is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /