Skip to content
ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

63 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” Searching Stick (SFML + C++)

Searching-Stick is a small SFML-based C++ program that visually demonstrates two classic searching algorithms: Linear Search and Binary Search. The array elements are represented as vertical "sticks", making it easier to understand how each algorithm operates step-by-step.

๐Ÿ› ๏ธ Technologies Used

  • C++
  • SFML (Simple and Fast Multimedia Library)

๐Ÿ“š Algorithms Demonstrated

  • Linear Search โ€“ Scans each stick from left to right until the target is found.
  • Binary Search โ€“ Efficiently searches a sorted array by repeatedly dividing the search range in half.

๐Ÿ’ก Data Structure Used

  • The sticks are stored in a dynamic array
  • Each Stick is a custom struct that contains properties such as height and color, used for visualization.

๐ŸŽฎ Features

  • Real-time visual feedback for search operations
  • Highlights each step during the search
  • Educational tool for beginners to understand search algorithms visually

๐Ÿš€ How to Run

Prerequisites

  • SFML installed on your system

Steps

  1. Clone the repository:

    git clone https://github.com/Chintan-Patel-Games/Searching-Stick.git
  2. Run the executable

๐Ÿ“š Concepts Demonstrated

  • Linear Search
  • Binary Searh

About

Searching-Stick is a small SFML-based C++ program that visually demonstrates two classic searching algorithms: Linear Search and Binary Search. The array elements are represented as vertical "sticks", making it easier to understand how each algorithm operates step-by-step.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages