Skip to content

Conversation

MrunaliniPachpute
Copy link

📌 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

@codecov-commenter
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.

@DenizAltunkapan
Copy link
Collaborator

DenizAltunkapan commented Sep 8, 2025

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.

@MrunaliniPachpute
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants