As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm an engineering student and I have a couple classes about different complex math problems and how to solve them exactly and numerically (approximation) using various algorithms. We have focused more on the actual math and the ideas of the solutions than implementations of them. The most of these that I have seen are written in C++. For some reason I don't really like C++ and I have fallen completely in love with Objective-C. (I own an apple computer)
Is it to much of a difference in efficiency between these to languages? I'm not planning on solving 40.000x40.000 navier-stokes equation systems, just some little/little-medium instances of practical problems. Most off the problems of interest are P-problems and for the NP-Hard good heuristics would be fine.
I am obligated to learn yet another programming language, or should I just go with Objective-C, a language that I'm very familiar with nowadays.
For Math you have another languages like:
R for statistic
Octave for matrices and vectors
Maxima as CAS
SciPy for numeric computations
The God of all mathematics computations FORTRAN
Use right tool for right thing, and focus on idea not on algorithm (as you said).
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am currently converting some R code into C++ code, and I need a “good” C++ Random Decision Forest implementation.
So far I found three big implementation (tmva, alglib and openCv), some “small/outdated” ones (like librf), and I need to choose one of them:
Do you guys have some good/bad experiences and/or some recommendations about those libraries (or maybe some other ones)? For example, the simplicity of use, the portability, the memory use, the speed, the readability of the error messages, the bugs(?), the comments about choices in the implementation, etc.
If you want to know, I am working with Visual Studio but my code is (and should stay) compatible with Linux. The speed and memory usage are very important for me since I will compute and keep in memory a large amount of random Forests. The code that I am developing is a machine learning algorithm for symbolic time sequences.
Thank you in advance,
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I can say I am an intermediate programmer in C/C++. I am trying to find a website (documents; anything) which hosts good puzzles (or similar) for C and C++. My objective is to experience mind teasers kind of things for C and C++. And certainly not any interview kind of questions. I would want to improve my techniques in C/C++, during a situation to solve a problem, or during implementation of an algorithm, dealing with specific logics; etc.
Second, I am also looking into new, simple and innovative problems (just problems, to improve problem solving) which can be practiced in C and C++. For example, implementing shift rotate functionality (this is very basic, but will teach you in-depth bit handling), and to a advanced level like graphs; etc.
Basically, to address I am expecting one, to improve my C/C++ skills, and two, to improve problem solving skills using C/C++.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
c or c++??
if i want to make a project on pattern recognition( artificial computing)
using c or c++
which one should i choose??
Object Oriented Programming can probably be of some help if you start programming something complex. That is possible with C but will probably be easier using C++. That said there is a risk to get lost on the multitude of features of the language if you are just learning it, and it's probably less so with C. But it's not so hard to use only a subset of C++, so definitely C++.
The most important point is that you should first focus on the problem(s) to solve before focusing on the tools you are using.
I would use something high level so you could learn about your own algorithms and not how to implement your algorithms. If you can write pattern recognition single handedly in C I applaud you. It is beyond my skill.
Perhaps Ruby or Python then implementing the computationally expensive parts in native C?
Since C++ is effectively a superset of C, there is no good reason not to use C++.
I think that is the least of your worries. C is available on more platforms, C++ has more features.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
since last four years i had been coding in c/c++, but those lenthy programs made me sick of them.
then i got to know about python, and i have learned the basics.
python seams to be more flexible and powerful than c++...
But i want to know is python realy better than c++?
if yes/no in what ways , please explain.
since i am a student , practicing which language would fetch me better job?
Python is completely different than C/C++, so it's hard to compare. Python lets you write clear, concise programs and very quickly develop software at the price of performance. It lets you be very productive and in many cases program performance is less concern, than programmer performance.
There are many existing programs for python 2.*, so it's better to stick for now with it. It would be fairly easy to move to 3.* later on.
It all depends on your needs, Python isn't replacing C/C++ in the embedded space anytime soon, and not too many web frameworks are going to be based on C/C++.
Python is neither better nor worse, or neither more or less flexible or powerful than C++. it's just aimed at a different set of problems.
I would rather students start at something like C++ so they have a better understanding of things like pointers & memory management. It's not really objects all the way down.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 12 years ago.
I'm confused should i learn C++ or ASM?
I'm just a hobbyist so no big deal but i need some advise.
thank you
Very Subjective but I would say learn C. Its the most basic language you will ever need to know. (If you know it you can grasp how assembly works without learning it). Then build on it and learn C++. If you don't know C (pointers, memory management, simple stack/function usage), I would learn it first before piling on C++ (with classes, inheritance, overloads, more complicated memory management).
Thats just my opinion though...
If you're a hobbyist, anything that seems interesting and fun to you will work.
The real question is : what software do you want to make? The project is the important thing.
Then the constraints relative to this kind of software will drive you to make your choice.
C++, ASM is very interesting, but nothing you should nowadays use as your primary language.
Are you a hardware hobbyist? ASM
Are you a game or other software-specific hobbyist? C++
Are you a My Little Pony hobbyist? PonyProg