Question:
Two Questions Of these computer languages which best for sorting numbers in tables and?
Brett D
2012-05-23 18:01:06 UTC
which one is easiest to learn ?
Of Sage/ Python/ Haskell/ Maple/ Matlab/ Mathematica/ C++/ Ruby/ Java

http://answers.yahoo.com/question/index?qid=20120522174306AAAbY9h
Three answers:
2012-05-24 12:35:44 UTC
A similar question was asked here:



https://answersrip.com/question/index?qid=20120523180520AA3snXc



There are some answers there. A summary of my answer there: Mathematica has Sort, SortBy, RankedMin/RankedMax (nth lowest/highest), and many useful supporting features (import/export text, excel, CSV, etc). Take a look at the other question for details.
PC
2012-05-24 02:36:43 UTC
as nicefx said, sorting algorithms are not language specific. They're typically defined using some sort of pseudo-code. Algorithms are then rated using whats called big-O notation, which is basically the total run time (in terms of the number of elements) as the number of elements goes to infinity.



There are, however, differences in language speeds. For example, scripting languages (actually, any interpreted language) like python or ruby run very slowly. Java bytecode runs reasonably fast, but is still several times slower (about 3x from the last comparisons i saw) than C++.



edit: typically scripting languages are the easiest to learn. I picked up the basics of Perl in under a week. Matlab is also quite simple to learn, if you're familiar with math constructs like matrices and how they interact with each other. C/C++/Java are more difficult to learn, but they are typically more powerful and versatile
?
2012-05-24 02:19:57 UTC
sorting is not depend to a programming language. it's depend to algorithm.

check about sorting algorithm : http://en.wikipedia.org/wiki/Sorting_algorithm



i never learn phython specifically (just read the book) but it looks like easier than c++. learn c++ or java is very worth. because they're popular and powerful in most areas


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...