-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for all data structures and algorithmic functions #59
Comments
What all should the documentation contain? For eg. Time Complexity,Working of the Algorithm? |
For now the documentation will not include the working details of the algorithm but only information about the "interface" of various functions, i.e. about:
along with (wherever necessary),
The inputs, variables and output will have their type, name and a single line description. The time and space complexity will be of the best and worst cases (and average case too, if necessary). For example, for Kadane.cpp the documentation could look like:
|
Issue #74 is now closed |
This task can be automated using Doxygen. |
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed in 15 days if no further activity occurs. Thank you for your contributions. |
I can definitely get start on this, if it's still open. |
@faheel is this issue still up for grab? I can definitely contribute to it. |
@safderareepattamannil and @itz-me9 Sorry for the late response. Yes, this issue is up for grabs and your contributions are welcome. |
I can help with this, is still open? Any changes about what documentation should contain? |
@LuisFerTR Great! See the readme for backtracking for a guide for how to implement this. In order to avoid duplicate work, though, please create a new issue describing which section of this you'll take ( I'm going to leave this issue as Up for grabs since different people can take different parts of it (by opening specific issues referencing what they'd like to do). |
@faheel is this issue still up for grabs? |
@100sarthak100 Great! Just create a new issue for that particular section, as @LuisFerTR has done. |
Hi,
I'm trying to cover the documentation for sorting algorithms. I want to
include an example for Usage in each algorithm, but i don't understand how
to set the value of order and ShowState. These input functions are defined
in the utils file, could you guide me as to how these are supposed to be
called from a .cpp file.
### Usage
```
c++vector<int> nums{4, 6, 1, 23, 2};
bubblesort(nums, 1, true);
```
Is this correct?
…On Sun, 14 Jun 2020 at 08:03, Alex Johnson ***@***.***> wrote:
Great! Feel free to open a PR.
> On Jun 13, 2020, at 6:37 PM, ivy-2000 ***@***.***> wrote:
>
>
> Hi!
> I took a step further and added documentation to my forked repo, since
the issue is up for grabs could I open a MR? @alxmjo <
https://github.com/alxmjo>
> I understand if the issue needs to be assigned first.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub <
#59 (comment)>,
or unsubscribe <
https://github.com/notifications/unsubscribe-auth/AAMUKKXDWFDBOJCTESLLS7TRWQSVZANCNFSM4DNFINVQ
>.
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOR4INRFR3IF53VZB6IZ2XDRWQZJFANCNFSM4DNFINVQ>
.
|
Hi @ivy-2000. You are on the right track. More specifically, the algorithms in this project are implemented as header files (ending in The complicating factor with the sorting algorithms is that we have one test file for all sorting algorithms ( But none of that should concern you. To call bubble_sort, for example, all you need to know is that the function takes three inputs:
Note that those last two parameters have default values ( If you want to play around with this a bit, try copying and importing
Playing around with it is probably the only way to really figure out what's going on. |
Is this issue still up for grab? I can work on it! |
Yep! |
I would like to work on this if this issue is till up for grab. |
As long as there's documentation to be completed it's up for grabs. 🙂 |
I would love to work on the number theory documentation if it is still available. |
Hey I have a small change to make and I would like to make a pull request. I know the mechanics, but I don't know the best practices. Additionally I'm very very new to open source. Is anyone willing to help me with the process. |
@abarbee129 Definitely up for grabs. Read through our documentation and then let me know if you have any questions. 🙂 |
@alxmjo |
You should be pushing to your own fork, not directly to ProAlgos. What exact commands did you use to try to push? |
Add a README to each directory containing proper documentation for algorithms or data structures in that directory.
The text was updated successfully, but these errors were encountered: