#### Archived

This topic is now archived and is closed to further replies.

# critticall

This topic is 5589 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

http://www.critticall.com/ how they say it? singularity here i come...

##### Share on other sites
We sure are on this way.

I mean me.

heh...

##### Share on other sites
We need to create games that will fit postsingularity era.

##### Share on other sites
That algorithm needed a little help, I had to figure out the initialization values for i & j (and l clearly doesn''y matter).

template<class RI>
void jitter_sort(RI begin, RI end)
{
int n = (int)(end-begin); --n;

int o=0, p=1, k=1, i=0, j=1, l;
while(k>=i)
{
k=-1;
while(n>k)
{
k++; l=(&*begin)[k];
if(j>l)
{
(&*begin)[i]=l; i++; (&*begin)[k]=j;
}
if(l>j)
{
i=k; j=(&*begin)[k];
}
}
j=0; n=i-p;
}
}

##### Share on other sites
Sort from the site critticall.com for several unique records, works only for numbers greater or equal to zero. What shouldn''t be a problem since an addition and a subtraction to all members of the array, is not hard to perform.

Generally, all variables used in c-critticall language are by default int type set to 0. So, variable j should be set to zero if we want to sort numbers of values from 0 to n.

0+ nevone

##### Share on other sites
quote:
Original post by Anonymous Poster
We need to create games that will fit postsingularity era.

i''m doing my best

##### Share on other sites
Hope so.

Critticall is a program that helps you to improve engines for that kind of games.

o+nevone

##### Share on other sites
quote:
Original post by nevone
Sort from the site critticall.com for several unique records, works only for numbers greater or equal to zero. What shouldn''t be a problem since an addition and a subtraction to all members of the array, is not hard to perform.

Generally, all variables used in c-critticall language are by default int type set to 0. So, variable j should be set to zero if we want to sort numbers of values from 0 to n.

0+ nevone

IIRC, it creates an infinite loop if j is initialized to 0.

1. 1
2. 2
Rutin
19
3. 3
khawk
15
4. 4
A4L
14
5. 5

• 9
• 13
• 26
• 10
• 11
• ### Forum Statistics

• Total Topics
633744
• Total Posts
3013662
×