HI i am quite puzzled now.Hope you can answer my doubts
Is data structure and algorithm analysis in Java similar to THose in C++
Can the codes in Data Structure and Algorithm Analysis in JAVA possibly be converted to Data Structures in C++
if possible how??
Puzzled about Data Structures and Algorithms
Page 1 of 15 Replies - 1742 Views - Last Post: 09 January 2010 - 08:10 PM
Replies To: Puzzled about Data Structures and Algorithms
#2
Re: Puzzled about Data Structures and Algorithms
Posted 08 January 2010 - 10:33 PM
Data structures are language independent. Implementation may differ between languages, but the core concepts remain the same. Stacks, queues, trees, so on and so forth.
Given the syntactical similarities between Java and C++ is is entirely possible (and often quite feasible) to do such conversions. The main difference is memory management and if you're doing such porting it should be a safe assumption that you know how to handle it.
Given the syntactical similarities between Java and C++ is is entirely possible (and often quite feasible) to do such conversions. The main difference is memory management and if you're doing such porting it should be a safe assumption that you know how to handle it.
#3
Re: Puzzled about Data Structures and Algorithms
Posted 08 January 2010 - 11:26 PM
Maybe he is refering to language specific emplementations like deque?
this may help: http://www.dreaminco...wtopic10157.htm
this may help: http://www.dreaminco...wtopic10157.htm
#4
Re: Puzzled about Data Structures and Algorithms
Posted 09 January 2010 - 01:05 PM
thanks.
My point is I have a a code of Java Data Structure and see some similarities
with c++ data structure so i was thinking of doing an conversion if permits
Any one here can share his experience of JAVA to C++ translation or methods?
My point is I have a a code of Java Data Structure and see some similarities
with c++ data structure so i was thinking of doing an conversion if permits
Any one here can share his experience of JAVA to C++ translation or methods?
#5
Re: Puzzled about Data Structures and Algorithms
Posted 09 January 2010 - 01:26 PM
You know because of the way Java is (no pointers, huge library, etc.) I personally just start from scratch... I may use the Java code as a reference but that is just about it. Java is NOTHING like C++ and visa versa... they just have similar syntax but under the hood they are completely different.
#6
Re: Puzzled about Data Structures and Algorithms
Posted 09 January 2010 - 08:10 PM
Maybe you should use this as an opportunity to LEARN what it is you're supposed to be learning, which might actually happen if you take the time and translate from Java to C++ YOURSELF!
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote







|