## booleanbalaji's Profile User Rating:

Reputation: 0 Apprentice
Group:
Members
Active Posts:
40 (0.08 per day)
Joined:
28-September 12
Profile Views:
2,016
Last Active:
Mar 03 2014 09:24 AM
Currently:
Offline

### Previous Fields

Country:
IN
OS Preference:
Linux
Favorite Browser:
Mozilla
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Who Cares
Dream Kudos:
0
booleanbalaji has not set their status

1. #### In Topic: Quick sort program using C++

Posted 3 Mar 2014

Yes, I over looked that. I changed the order of the parameters and still, it crashes. Is there something wrong with the algorithm? Here's the algorithm I adopted.

Quote

Algorithm inPlaceQuickSort(S,a,:
Input: An array S of distinct elements; integers a and b
Output: Array S with elements originally from indices from a to b, inclusive,
sorted in nondecreasing order from indices a to b
if a ≥ b then return {at most one element in subrange} p←S[b] {the pivot} l ←a {will scan rightward} r←b−1 {will scan leftward} while l ≤ r do
{find an element larger than the pivot} while l ≤ r and S[l] ≤ p do
l ←l+1
{find an element smaller than the pivot} while r ≥ l and S[r] ≥ p do
r←r−1
if l < r then
swap the elements at S[l] and S[r]
{put the pivot into its final place} swap the elements at S[l] and S[b]
{recursive calls}
inPlaceQuickSort(S,a, l −1)
inPlaceQuickSort(S, l +1,
{we are done at this point, since the sorted subarrays are already consecutive}
2. #### In Topic: Quick sort program using C++

Posted 2 Mar 2014

I have no clue how to use the debugger.
3. #### In Topic: Quick sort program using C++

Posted 2 Mar 2014

I am not getting any errors. The program compiles perfectly. I will try the debugger though
4. #### In Topic: Gaming PC config

Posted 21 Feb 2013

Blame the industry for that. -roll-
5. #### In Topic: Gaming PC config

Posted 21 Feb 2013

I need something that'll last atleast a few years and not be out dated.
So, i guess,i'll max out on the specs while I can.

Member Title:
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

E-mail: