Algoritmalar kitaplığı
cppreference.com sitesinden
< cpp
Algoritmalar kitapligi, bir elemanlar araligi uzerinde islem yapan ve bir cok farkli amaca hizmet eden (or. arama, siralama, sayma, degistirme gibi) fonksiyonlar tanimlar. Elemanlar araligi [ilk, son) sagdan acik araligi olarak tanimlanmistir ve son eleman, isleme tabi tutulacak araligin en son elemanindan bir sonraki elemana isaret eder.
Degistirmeyen dizi islemleri | ||
Defined in header <algoritma> | ||
(C++11) (C++11) (C++11) | bir elemanlar araligindaki tum, bir kisim veya hic biri icin bir dogruluk ifadesinin true dogru olup olmadigini denetler. (function template) | |
bir fonksiyonu elemanlar araligindaki tum elemanlara uygular (function template) | ||
belirli bir kriteri saglayan eleman sayisini doner (function template) | ||
iki araligin farkli oldugu ilk pozisyonu bulur (function template) | ||
iki kumenin elemanlarinin ayni olup olmadigini belirler (function template) | ||
(C++11) | belirli bir kriteri saglayan ilk elemani bulur (function template) | |
belirli bir araliktaki son dizi elemanlari bulur (function template) | ||
bir grup elemandan herhangi birinin ilk gectigi yeri bulur (function template) | ||
birbirinin ayni (ya da farkli bir iliskiyle iliskilendirilmis) iki komsu elemani bulur (function template) | ||
searches for a range of elements (function template) | ||
searches for a number consecutive copies of an element in a range (function template) | ||
Degistiren dizi islemleri | ||
Defined in header <algoritma> | ||
(C++11) | bir elemanlar araligini baska bir yere kopyalar (function template) | |
(C++11) | belli bir sayida elemani baska bir yere kopyalar (function template) | |
bir dizi elemani ters sirada kopyalar (function template) | ||
(C++11) | moves a range of elements to a new location (function template) | |
(C++11) | moves a range of elements to a new location in backwards order (function template) | |
belli bir degeri araliktaki elemanlara atar (function template) | ||
belli bir sayida elemana bir degeri atar (function template) | ||
applies a function to a range of elements (function template) | ||
verilen bir araliktaki fonksiyonun aldigi degerleri doner (function template) | ||
bir fonksiyonun n defa cagrilmasiyla olusan degerleri kaydeder (function template) | ||
removes elements satisfying specific criteria (function template) | ||
copies a range of elements omitting those that satisfy specific criteria (function template) | ||
replaces all values satisfying specific criteria with another value (function template) | ||
copies a range, replacing elements satisfying specific criteria with another value (function template) | ||
swaps the values of two objects (function template) | ||
swaps two ranges of elements (function template) | ||
swaps the elements pointed to by two iterators (function template) | ||
reverses the order elements in a range (function template) | ||
creates a copy of a range that is reversed (function template) | ||
rotates the order of elements in a range (function template) | ||
copies and rotate a range of elements (function template) | ||
(C++11) | randomly re-orders elements in a range (function template) | |
removes consecutive duplicate elements in a range (function template) | ||
creates a copy of some range of elements that contains no consecutive duplicates (function template) | ||
Bolumleme islemleri | ||
Defined in header <algorithm> | ||
(C++11) | bir araligin verilen bir dogruluk ifadesiyle bolumlenip bolumlenmedigini belirler (function template) | |
divides a range of elements into two groups (function template) | ||
(C++11) | copies a range dividing the elements into two groups (function template) | |
divides elements into two groups while preserving their relative order (function template) | ||
(C++11) | locates the partition point of a partitioned range (function template) | |
Siralama islemleri (siralanmis araliklarda) | ||
Defined in header <algoritma> | ||
(C++11) | checks whether a range is sorted into ascending order (function template) | |
(C++11) | finds the largest sorted subrange (function template) | |
sorts a range into ascending order (function template) | ||
sorts the first N elements of a range (function template) | ||
copies and partially sorts a range of elements (function template) | ||
sorts a range of elements while preserving order between equal elements (function template) | ||
partially sorts the given range making sure that it is partitioned by the given element (function template) | ||
Ikili arama islemleri (siralanmis araliklarda) | ||
Defined in header <algoritma> | ||
verilen degerden daha kucuk olmayan ilk elemana isaret eden bir ilerletici doner (function template) | ||
verilen degerden buyuk ilk elemandan baslayan bir ilerleyici (iterator) doner (function template) | ||
bir elemanin belli bir aralikta var olup olmadigini belirler (function template) | ||
belli bir anahtara esit olan elemanlar dizisi doner (function template) | ||
Kume islemleri (siralanmis araliklarda) | ||
Defined in header <algoritma> | ||
merges two sorted ranges (function template) | ||
sirali iki araligi yerinde birlestirir (function template) | ||
eger bir kume bir baska kumenin altkumesiyse, dogru doner (function template) | ||
computes the difference between two sets (function template) | ||
computes the intersection of two sets (function template) | ||
computes the symmetric difference between two sets (function template) | ||
computes the union of two sets (function template) | ||
Heap islemleri | ||
Defined in header <algoritma> | ||
verilen bir araligin "max heap" olup olmadigini denetler (function template) | ||
(C++11) | "max heap" olan en buyuk alt araligi bulur (function template) | |
creates a max heap out of a range of elements (function template) | ||
adds an element to a max heap (function template) | ||
removes the largest element from a max heap (function template) | ||
turns a max heap into a range of elements sorted in ascending order (function template) | ||
En kucuk/en buyuk islemleri | ||
Defined in header <algoritma> | ||
returns the larger of two elements (function template) | ||
returns the largest element in a range (function template) | ||
returns the smaller of two elements (function template) | ||
returns the smallest element in a range (function template) | ||
(C++11) | returns the larger and the smaller of two elements (function template) | |
(C++11) | returns the smallest and the largest element in a range (function template) | |
eger bir aralik digerinden sozluksel olarak daha kucuk ise dogru doner (function template) | ||
(C++11) | bir dizinin baska bir dizinin permutasyonu olup olmadigini belirler (function template) | |
generates the next greater lexicographic permutation of a range of elements (function template) | ||
generates the next smaller lexicographic permutation of a range of elements (function template) | ||
Sayisal islemler | ||
Defined in header <sayisal> | ||
(C++11) | verilen araligi baslangic degerinden baslayarak artan degerlerle doldurur (function template) | |
bir elemanlar araligini toplar (function template) | ||
iki eleman araliginin icler carpimini hesaplar (function template) | ||
bir araliktaki komsu elemanlarin farklarini hesaplar (function template) | ||
bir elemanlar araliginin kismi toplamini hesaplar (function template) | ||
C kitapligi | ||
Defined in header <cstdlib> | ||
tipi belirtilmemis bir elemanlar araligini siralar (function) | ||
tanimlanmamis tipte bir eleman icin bir diziyi arastirir (function) |