You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/09/29 12:10:00 UTC

[jira] [Updated] (ARROW-6732) [Java] Implement quick sort in a non-recursive way to avoid stack overflow

     [ https://issues.apache.org/jira/browse/ARROW-6732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated ARROW-6732:
----------------------------------
    Labels: pull-request-available  (was: )

> [Java] Implement quick sort in a non-recursive way to avoid stack overflow
> --------------------------------------------------------------------------
>
>                 Key: ARROW-6732
>                 URL: https://issues.apache.org/jira/browse/ARROW-6732
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Java
>            Reporter: Liya Fan
>            Assignee: Liya Fan
>            Priority: Critical
>              Labels: pull-request-available
>
> The current quick sort algorithm in implemented by a recursive algorithm. The problem is that for the worst case, the number of recursive layers is equal to the length of the vector.  For large vectors, this will cause stack overflow.
> To solve this problem, we implement the quick sort algorithm as a non-recursive algorithm.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)