Cosmos: No specific format for documentation of various algorithms

Created on 12 Feb 2018  路  4Comments  路  Source: OpenGenus/cosmos

This is a(n):

  • [ ] New algorithm
  • [ ] Update to an existing algorithm
  • [ ] Error
  • [x] Proposal to the Repository

Details:

I went through the readme files of various algorithms in this repo & observed that none of them followed a specific format. Some of them only have a definition & an external link for further reading, for ex., bogo_sort , while others have a proper explanation, for ex., bubble_sort.
I think, there must be some specific format for creating readme files of these algorithms. For example, for every algorithm, we must give all it's necessary details: i.e., explanation, pseudcode & time complexity , while other details are good to have but optional . In the contribution guides folder, there must be documentation guide as well along with coding style guide.
Since, our end goal is to provide user an offline interface & reduce search time, following a specific format for documentation will definitely improve usability of this project by external applications.

Most helpful comment

I propose this template

Algorithm_Name

Description

Explanation

Pictorial diagram to explain

Algorithm

Algorithm in words

PseudoCode

Complexity

Time and space complexity


A massive collaborative effort by OpenGenus Foundation


All 4 comments

I propose this template

Algorithm_Name

Description

Explanation

Pictorial diagram to explain

Algorithm

Algorithm in words

PseudoCode

Complexity

Time and space complexity


A massive collaborative effort by OpenGenus Foundation


Update: I've submitted 2 PRs: #3278 & #3280 , as an example of template proposed above for the readme files of each algorithm.
It would be better, if we can add a documentation guide as well in the contribution guides folder, with this as a template/ specific format for each readme file, in order to guide new contributors, and thus for improving overall documentation of this repo. Please give your suggestions and reviews regarding this issue. :D

The documentation format looks good. We may use this as the standard style. 馃憤

Documentation is an important part and an extensive coverage with greatly enhance the utility of Cosmos. Feel free to compile the documentation guide using this as the template and send it as a pull request.

Thanks! Will be working on this issue馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grantmwilliams picture grantmwilliams  路  4Comments

ivanrein picture ivanrein  路  4Comments

rishavpandey43 picture rishavpandey43  路  3Comments

vaibhavsingh97 picture vaibhavsingh97  路  3Comments

Josh5231 picture Josh5231  路  4Comments