Click here to Skip to main content
15,888,162 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am a hobbyest and currently learning C++.So can I algorithms with my current knowledge. If yes then which language should I learn.


What I have tried:

Nothing. but to make it thirty characters long I am still writing.
Posted
Updated 20-Oct-20 9:17am

Quote:
Which language is used for creating algorithms. Can I do it with C++.

None.
An algorithm is like a cooking recipe, you can write it in any language (English, French, Italian, German, Chinese ...), the result will be the same.
An algorithm is a procedure describing how to solve a problem.

Think of Sieve of Eratosthenes - Wikipedia[^] created more than 2000 years ago, it is an algorithm, a procedure to find prime numbers.

This should get you started with algorithms:
- Learn one or more analyze methods, E.W. Djikstra/N. Wirth Stepwize Refinement/top-Down method is a good start.
Structured Programming.pdf[^]
https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design[^]
https://en.wikipedia.org/wiki/Structured_programming[^]
https://en.wikipedia.org/wiki/Edsger_W._Dijkstra[^]
https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF[^]
Program Development by Stepwise Refinement[^]
- Learn Algorithms and Data-Structures.
GitHub - The-Art-of-Computer-Programming-Books: "Everyday life is like programming, I guess. If you love something you can put beauty into it." ? Donald E. Knuth[^]
 
Share this answer
 
v2
None. Algorithms are "language agnostic" - they can be implemented in any language, but they are a "way of thinking" about a problem rather than a language specific implementation.

You construct an algorithm and then apply it by implementing it in any appropriate language, or none it you follow the algorithm manually in the real world.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900