[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

is there any difference between learning algorithms with JAVA

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 12
Thread images: 2

File: sedwick.jpg (160KB, 540x648px) Image search: [Google]
sedwick.jpg
160KB, 540x648px
is there any difference between learning algorithms with JAVA or algorithms in C

?

What is better option?
>>
>>56934776
c
>>
File: Clrs3.jpg (50KB, 420x475px) Image search: [Google]
Clrs3.jpg
50KB, 420x475px
>>56934776
technically speaking, there should not be differences. A whole swath of algorithms could be optimised by having control of the bare metal, but that's beside the point.

Algorithms are language agnostic, like pic related, they can be written in pseudocode.
>>
>>56934776
better c bro
>>
>>56934776
either is fine.
>>
>>56934776
Not at all.
The most esteemed book on algorithms, Donald Knuth's TAOCP, doesn't use a commonly use language at all. Instead he invented a fictional Assembly language to describe the algorithms.
>>
>>56935024
This, although I would say that the threshold for learning C might be a bit higher than Java. If you already know either language, then either language is fine for learning algorithms.
>>
>>56935062
Well, in Knuth's defence, in that era, there were few languages at all and structural programming was barely invented. I mean, in TAoCP he invents a for loop.
>>
Languages are the easy part.
Any competent programmer can pick up most languages within weeks.

When you mastered all the major algorithms in Java, you can VERY EASILY translate them to C or whatever you want.
>>
learn both anon, take it from me.
>>
>>56935062
but op pics book is a book that will allow averange hs to learn basic data structures and algos

knuth is more like reference manual
>>
>>56934776
Out of those two C is a better option, just because most algorithms have nothing to do with java's object model. CLRS (>>56935024) defines all of their algorithms in terms of functions, for example.
Thread posts: 12
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.