Questions tagged as 'quicksort'

1
answer

When sorting an array removes data

I am programming a genetic algortimo so that this solves problems of linear programming, I am using C language, when calculating the limit of the variables I keep the values in a float type array, I need to order that array but it erases a data...
asked by 22.04.2018 / 20:42
1
answer

Problem when ordering queries entered by the user

I am creating a program that captures data on a page using JavaScript. I inserted the QuickSort sorting method for general queries, however, only one query is displayed on the screen even if I entered more than one. This is my code: v...
asked by 16.06.2017 / 16:45
1
answer

ALGORITHM PARTITION QS

They could guide me how this algorithm works     
asked by 22.05.2017 / 01:58
0
answers

Quicksort, for two-dimensional matrix

How I am doing a program in which I need to apply Quicksort, now I work with a two-dimensional matrix, what I want to achieve is that when 2 equal numbers are compared ( matriz[i,j] <= matriz[i+1,j] ) the value [i,j+1] and the va...
asked by 03.09.2018 / 06:07
1
answer

Doubt about recursion

I understand that the following problem refers to the data sorting solution using a Quicksort or at least that is supposed to be, and I have been asked to find the error by which the program gets stuck, but no matter how much I searched I find i...
asked by 11.03.2018 / 21:08
1
answer

Modify vector inside java method

The purpose of the program is to create a Marine Life Simulator (in broad strokes). My problem is this: I have an abstract class called AnimalMarino that defines a few methods, including this one: public abstract int getVelocidad(); T...
asked by 07.11.2016 / 21:00