Commit Graph

75 Commits

Author SHA1 Message Date
github-actions
1fbd0d59ac updating DIRECTORY.md 2020-07-10 21:38:04 +00:00
Krishna Vedala
05bb23ca27
[enhancement] New Graphics implementation with algorithm for spirograph (#936)
* added spirograph program

* add graphics forlder to cmake

* updating DIRECTORY.md

* enable VNC for GUI programs on gitpod

* fix cpplint error

* fix macro definitions for correct documentation

* fix filename in docs

* move include from namespace to global

* download and build freeglut if not available

* install opengl libraries for build check

* fix syntax error

* fix quotes

* install mesa-utils instead

* use markepplace tool instead of installing

* fix syntax

* undo changes to github actions

* OpenGL not mandatory

* add private option to compile definition

* fix: corrected to compile definitions instead of options

* use the macro USE_GLUT

* compile FREEGLUT as a subdirectory. this maintains a consistency

* build freeglut_static when GLUT library not available

* provide keyboard control

* clang-tidy fixes for cb284bddb2

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-07-10 12:47:37 -04:00
Krishna Vedala
f16093cf7b
Merge pull request #917 from kvedala/hill_cipher
[feature] Hill cipher algorithm
2020-06-29 08:31:37 -04:00
github-actions
0b57b89543 updating DIRECTORY.md 2020-06-27 00:37:39 +00:00
github-actions
dcd0d6b478 updating DIRECTORY.md 2020-06-26 13:04:18 +00:00
github-actions
e22f56c906 updating DIRECTORY.md 2020-06-25 18:43:00 +00:00
github-actions
21093365cd updating DIRECTORY.md 2020-06-25 09:51:24 +00:00
github-actions
26ffe8c6d7 updating DIRECTORY.md 2020-06-23 19:34:19 +00:00
github-actions
7393d88811 updating DIRECTORY.md 2020-06-23 19:02:47 +00:00
Krishna Vedala
96ed582eb2
Merge pull request #874 from kvedala/minima-algorithm
[feat:] Minima algorithm
2020-06-22 22:48:23 -04:00
Krishna Vedala
db9fa4dd40
Merge pull request #878 from kvedala/brents-method
feat: Brent's method to find extrema
2020-06-22 22:46:18 -04:00
github-actions
58d5f3ea11 updating DIRECTORY.md 2020-06-22 12:05:14 +00:00
github-actions
1c4026bca1 updating DIRECTORY.md 2020-06-22 02:31:55 +00:00
matgrz1993
d9fc878962
fix: Remove FenwickTree (#856)
* Remove FenwickTree

FenwickTree is the same Data Structure as Binary Indexed Tree located in file "range_queries/bit.cpp" so it could be removed.

* Fix cpplint errors

* docs: Update documentation

* docs: Update FenwickTree documentation

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-06-22 01:11:08 +05:30
github-actions
0f5e880376 updating DIRECTORY.md 2020-06-21 17:42:10 +00:00
github-actions
33b8169f41 updating DIRECTORY.md 2020-06-21 04:10:37 +00:00
Krishna Vedala
aaa08b0150
Major rework to improve code quality and add automation checks (#805)
* delete secant method - it is identical to regula falsi

* document + improvize root finding algorithms

* attempt to document gaussian elimination

* added file brief

* commented doxygen-mainpage, added files-list link

* corrected files list link path

* files-list link correction - this time works :)

* document successive approximations

* cleaner equation

* updating DIRECTORY.md

* documented kmp string search

* document brute force string search

* document rabin-karp string search

* fixed mainpage readme

* doxygen v1.8.18 will suppress out the #minipage in the markdown

* cpplint correction for header guard style

* github action to auto format source code per cpplint standard

* updated setting to add 1 space before `private` and `public` keywords

* auto rename files and auto format code

* added missing "run" for step

* corrected asignmemt operation

* fixed trim and assign syntax

* added git move for renaming bad filenames

* added missing pipe for trim

* added missing space

* use old and new fnames

* store old fname using echo

* move files only if there is a change in filename

* put old filenames in quotes

* use double quote for old filename

* escape double quotes

* remove old_fname

* try escape characters and echo"

* add file-type to find

* cleanup echo

* ensure all trim variables are also in quotes

* try escape -quote again

* remove second escpe quote

* use single quote for first check

* use carets instead of quotes

* put variables in brackets

* remove -e from echo

* add debug echos

* try print0 flag

* find command with while instead of for-loop

* find command using IFS instead

* 🎉 IFS fix worked - escaped quotes for git mv

* protetc each word in git mv ..

* filename exists in lower cases - renamed

* 🎉 git push enabled

* updating DIRECTORY.md

* git pull & then push

* formatting filenames d7af6fdc8c

* formatting source-code for d7af6fdc8c

* remove allman break before braces

* updating DIRECTORY.md

* added missing comma lost in previous commit

* orchestrate all workflows

* fix yml indentation

* force push format changes, add title to DIRECTORY.md

* pull before proceeding

* reorganize pull commands

* use master branches for actions

* rename .cc files to .cpp

* added class destructor to clean up dynamic memory allocation

* rename to awesome workflow

* commented whole repo cpplint - added modified files lint check

* removed need for cpplint

* attempt to use actions/checkout@master

* temporary: no dependency on cpplint

* formatting filenames 153fb7b8a5

* formatting source-code for 153fb7b8a5

* updating DIRECTORY.md

* fix diff filename

* added comments to the code

* added test case

* formatting source-code for a850308fba

* updating DIRECTORY.md

* added machine learning folder

* added adaline algorithm

* updating DIRECTORY.md

* fixed issue [LWG2192](https://cplusplus.github.io/LWG/issue2192) for std::abs on MacOS

* add cmath for same bug: [LWG2192](https://cplusplus.github.io/LWG/issue2192) for std::abs on MacOS

* formatting source-code for f8925e4822

* use STL's inner_product

* formatting source-code for f94a330594

* added range comments

* define activation function

* use equal initial weights

* change test2 function to predict

* activation function not friend

* previous commit correction

* added option for predict function to return value before applying activation function as optional argument

* added test case to classify points lying within a sphere

* improve documentation for adaline

* formatting source-code for 15ec4c3aba

* added cmake to geometry folder

* added algorithm include for std::max

* add namespace - machine_learning

* add namespace - statistics

* add namespace - sorting

* added sorting algos to namespace sorting

* added namespace string_search

* formatting source-code for fd69530515

* added documentation to string_search namespace

* feat: Add BFS and DFS algorithms to check for cycle in a directed graph

* Remove const references for input of simple types

Reason: overhead on access

* fix bad code

sorry for force push

* Use pointer instead of the non-const reference

because apparently google says so.

* Remove a useless and possibly bad Graph constuctor overload

* Explicitely specify type of vector during graph instantiation

* updating DIRECTORY.md

* find openMP before adding subdirectories

* added kohonen self organizing map

* updating DIRECTORY.md

* remove older files and folders from gh-pages before adding new files

* remove chronos library due to inacceptability by cpplint

* use c++ specific static_cast instead

* initialize radom number generator

* updated image links with those from CPP repository

* rename computer.... folder to numerical methods

* added durand kerner method for root computation for arbitrarily large polynomials

* fixed additional comma

* fix cpplint errors

* updating DIRECTORY.md

* convert to function module

* update documentation

* move openmp to main loop

* added two test cases

* use INT16_MAX

* remove return statement from omp-for loop and use "break"

* run tests when no input is provided and skip tests when input polynomial is provided

* while loop cannot have break - replaced with continue and check is present in the main while condition

* (1) break while loop (2) skip runs on break_loop instead of hard-break

* add documentation images

* use long double for errors and tolerance checks

* make iterator variable i local to threads

* add critical secions to omp threads

* bugfix: move file writing outside of the parallel loop
othersie, there is no gurantee of the order of roots written to file

* rename folder to data_structures

* updating DIRECTORY.md

* fix ambiguous symbol `size`

* add data_structures to cmake

* docs: enable tree view, add timestamp in footer, try clang assistaed parsing

* doxygen - open links in external window

* remove invalid parameter from function docs

* use HTML5 img tag to resize images

* move file to proper folder

* fix documentations and cpplint

* formatting source-code for aacaf9828c

* updating DIRECTORY.md

* cpplint: add braces for multiple statement if

* add explicit link to badges

* remove  duplicate line

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* remove namespace indentation

* remove file associations in settings

* add author name

* enable cmake in subfolders of data_structures

* create and link object file

* cpp lint fixes and instantiate template classes

* cpp lint fixes and instantiate template classes

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* cpplint - ignore `build/include`

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* disable redundant gcc compilation in cpplint workflow

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* template header files contain function codes as well and removed redundant subfolders

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* updating DIRECTORY.md

* remove semicolons after functions in a class

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* cpplint header guard style

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* remove semilon

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* added LU decomposition algorithm

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* added QR decomposition algorithm

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* use QR decomposition to find eigen values

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* updating DIRECTORY.md

* use std::rand for thread safety

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* move srand to main()

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* cpplint braces correction

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* updated eigen value documentation

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* fix matrix shift doc

Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>

* rename CONTRIBUTION.md to CONTRIBUTING.md #836

* remove 'sort alphabetical order' check

* added documentation check

* remove extra paranthesis

* added gitpod

* added gitpod link from README

* attempt to add vscode gitpod extensions

* update gitpod extensions

* add gitpod extensions cmake-tools and git-graph

* remove gitpod init and add commands

* use init to one time install doxygen, graphviz, cpplint

* use gitpod dockerfile

* add ninja build system to docker

* remove configure task

* add github prebuild specs to gitpod

* disable gitpod addcommit

* update documentation for kohonen_som

* added ode solve using forward euler method

* added mid-point euler ode solver

* fixed itegration step equation

* added semi-implicit euler ODE solver

* updating DIRECTORY.md

* fix cpplint issues - lines 117 and 124

* added documentation to ode group

* corrected semi-implicit euler function

* updated docs and test cases better structure

* replace `free` with `delete` operator

* formatting source-code for f55ab50cf2

* updating DIRECTORY.md

* main function must return

* added machine learning group

* added kohonen som topology algorithm

* fix graph image path

* updating DIRECTORY.md

* fix braces

* use snprintf instead of sprintf

* use static_cast

* hardcode character buffer size

* fix machine learning groups in documentation

* fix missing namespace function

* replace kvedala fork references to TheAlgorithms

* fix bug in counting_sort

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Anmol3299 <mittalanmol22@gmail.com>
2020-06-19 21:34:56 +05:30
github-actions
70a2aeedc3 updating DIRECTORY.md 2020-06-13 15:45:53 +00:00
github-actions
2829734532 updating DIRECTORY.md 2020-06-12 22:47:55 +00:00
github-actions
55c21c86e1 updating DIRECTORY.md 2020-06-02 15:13:18 +00:00
github-actions
46aba07f20 updating DIRECTORY.md 2020-05-30 14:58:01 +00:00
github-actions
5a54093484 updating DIRECTORY.md 2020-05-27 13:24:42 +00:00
github-actions
d86ff19d44 updating DIRECTORY.md 2020-05-27 12:14:45 +00:00
github-actions
6b55d4472f updating DIRECTORY.md 2020-05-25 15:18:11 +00:00
github-actions
258200ec9f updating DIRECTORY.md 2020-05-24 12:09:31 +00:00
github-actions
b1bacb03b5 updating DIRECTORY.md 2020-05-24 06:47:38 +00:00
github-actions
34337c7bc3 updating DIRECTORY.md 2020-05-24 04:44:27 +00:00
github-actions
09d40e008a updating DIRECTORY.md 2020-05-24 04:42:45 +00:00
github-actions
1c19d850e0 updating DIRECTORY.md 2020-05-23 16:13:05 +00:00
Anup Kumar Panwar
22a5e863fd
Merge pull request #734 from faizanahamed1414/patch-2
error in line 23 i.e a constant value
2020-05-23 00:01:16 +05:30
github-actions
a4e1d4c6c1 updating DIRECTORY.md 2020-05-22 14:14:06 +00:00
github-actions
2ebeb3673b updating DIRECTORY.md 2020-05-22 10:15:46 +00:00
github-actions
8978cd0653 updating DIRECTORY.md 2020-05-22 10:14:37 +00:00
github-actions
ea98ef48bc updating DIRECTORY.md 2020-05-21 20:49:02 +00:00
github-actions
375298f113 updating DIRECTORY.md 2020-05-21 20:45:15 +00:00
github-actions
f4e94eed88 updating DIRECTORY.md 2020-05-21 15:26:08 +00:00
github-actions
d079d1fda4 updating DIRECTORY.md 2020-05-19 18:57:16 +00:00
github-actions
52f46c5b61 updating DIRECTORY.md 2020-05-19 15:50:31 +00:00
github-actions
a11c09e6ba updating DIRECTORY.md 2020-05-19 06:45:56 +00:00
github-actions
22ee86d69b updating DIRECTORY.md 2020-05-19 04:59:55 +00:00
Srujan Bharadwaj
de65e2b256
Create extended_euclid_algorithm.cpp (#759)
* Create extended_euclid_algorithm.cpp

* Fix wihitespaces and fix if else space issues

* Update extended_euclid_algorithm.cpp

* updating DIRECTORY.md

* Update extended_euclid_algorithm.cpp

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-05-18 14:32:42 +02:00
github-actions
0b6f8ff7d3 updating DIRECTORY.md 2020-05-14 23:21:24 +00:00
github-actions
b88f7d89d6 updating DIRECTORY.md 2020-04-27 00:34:36 +00:00
github-actions
da894d7745 updating DIRECTORY.md 2020-04-26 09:51:54 +00:00
github-actions
b8a6a6470f updating DIRECTORY.md 2020-04-26 09:28:13 +00:00
Musab Albirair
49871c7f2f
Add file for non-recursive merge sort (#730)
* Add file for non-recursive merge sort

Add the source file (sorting/non_recursive_merge_sort.cpp) which defines the function template "non_recursive_merge_sort" in different forms, along with a helper function merge. Moreover, it creates 2 additional files, doxy.txt for Doxygen configuration, and a makefile to automate building, testing and cleaning.

* Add file for non-recursive merge sort

Add the source file (sorting/non_recursive_merge_sort.cpp) which defines the function template "non_recursive_merge_sort" in different forms, along with a helper function merge. Moreover, it creates 2 additional files, doxy.txt for Doxygen configuration, and a makefile to automate building, testing and cleaning.

* GitHub Action to cd sorting ; make doc ; make doc

* updating DIRECTORY.md

* Fix indentation error

* uses: mattnotmitt/doxygen-action@master

* doxyfile-path: 'sorting/'

* doxyfile-path: 'sorting/doxy.txt'

* working-directory: '.'

* Update sorting_non_recursive_merge_sort.yml

* Update sorting_non_recursive_merge_sort.yml

* Update sorting_non_recursive_merge_sort.yml

* Publish HTML to GitHub Pages

* Update sorting_non_recursive_merge_sort.yml

Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-04-25 17:16:42 +02:00
github-actions
b2799b6fbb updating DIRECTORY.md 2020-04-22 12:53:26 +00:00
github-actions
5856bc0918 updating DIRECTORY.md 2020-04-22 12:34:03 +00:00
github-actions
5149a9f550 updating DIRECTORY.md 2020-04-22 00:19:29 +00:00
github-actions
7320fbe6c0 updating DIRECTORY.md 2020-04-21 13:13:18 +00:00