Skip to content

DimaBMW/Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

#💻Algorithms💻


Table Algorithms

1. Binary search
2. Bubble sort

###💡Theory💡

№1 binary search

Binary search is an algorithm; it receives a sorted list as input (this is important!). If the element you are looking for is present in the list, then binary search returns the position in which it was found. Otherwise, the binary search will return null.


№2 Bubble sort

Bubble sort is probably the simplest sort I've come across. It is usually found in books on programming and does not go beyond it. Because it is much slower than other sorting algorithms. How the bubble sort algorithm works The principle of operation of bubble sort can be described in three points: Walking through the entire array; Comparison of pairs of adjacent cells; If during comparison it turns out that the value of cell i is greater than the value of cell i + 1, then we swap the values ​​of these cells;


About

This repository contains various C++ algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages