cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

csort, rsort - why???

RadovanOmorjan
1-Visitor

csort, rsort - why???

Could someone, please explain this to me. I really do not understand this behavior.

Regards,
Radovan
3 REPLIES 3

I found the reason from the Mathcad help. It is due to the unstable heapsort procudure applied. Is there any chance to replace this procedure?

Regards,
Radovan

On 8/31/2009 8:11:35 AM, omorr wrote:
>Could someone, please explain
>this to me. I really do not
>understand this behavior.
>
>Regards,
>Radovan

Same in Mathcad 14.

Val
http://twt.mpei.ac.ru/ochkov/v_ochkov.htm

On 8/31/2009 8:11:35 AM, omorr wrote:
>Could someone, please explain
>this to me. I really do not
>understand this behavior.
>
>Regards,
>Radovan

GIGO.

Procedurally, a bug, but since you've commanded it to sort pathological data, anything it outputs is mathematically correct, since the algorithm doesn't care about data in any other row or column, as the case may be.

Procedurally, if the algorithm is presented with pathological data, it should do nothing, but it attempts to sort and gets what it gets.

TTFN,
Eden
Announcements

Top Tags