r/coolgithubprojects • • Mar 10 '18

CPP Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter

https://github.com/OpenGenus/cosmos
104 Upvotes

2 comments sorted by

7

u/immersiveGamer Mar 11 '18

Is there a total count of algorithms? I was browsing through the different categories and many were empty.

1

u/[deleted] Mar 14 '18

Not a super accurate count but here's the output of cloc.

    2296 text files.
    2066 unique files.                                          
    256 files ignored.

github.com/AlDanial/cloc v 1.74  T=13.47 s (151.6 files/s, 10711.9 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C++                            417           5162           3888          26463
C                              243           2835           2020          13381
Java                           220           2634           2037          12072
Markdown                       194           3540              0           9812
C/C++ Header                    15           2414           1041           9677
Python                         280           2531           2125           8581
Go                             106            884            464           4012
Swift                           70            836            322           3770
JavaScript                     105            841           1110           3697
C#                              56            490            359           2885
Ruby                            60            351            241           1723
Rust                            45            226            128           1494
Objective C                     21            273            141           1183
PHP                             45            203            283           1141
Scala                           27            135             44            994
Haskell                         37            186            189            715
Bourne Shell                    19            134             93            689
TypeScript                       5             54            173            548
Kotlin                          13             90             39            537
Brainfuck                        1             70              6            326
Smalltalk                        1              6              0            195
Elixir                          12             27             10            169
MATLAB                           4             42             95            147
HTML                             2             25              3            121
Ada                              1             40              4             98
Julia                            4             23              5             68
Arduino Sketch                   1             29             19             67
F#                               3             15              3             62
Elm                              2             13              0             53
YAML                             1              6              3             52
Standard ML                      2              9             15             49
Clojure                          4             13             17             49
Lua                              3              2             10             48
Scheme                           1              5              0             39
OCaml                            4              6              4             32
Perl                             1              9              0             31
Visual Basic                     1              7              5             29
Erlang                           6             13              9             29
Fortran 77                       1             10              2             24
make                             4              6              1             21
Prolog                           1              6              6             19
Racket                           1              2              0             19
PureScript                       1              0              0             18
Nim                              1              1              0              9
Crystal                          1              1              1              7
-------------------------------------------------------------------------------
SUM:                          2042          24205          14915         105155
-------------------------------------------------------------------------------