Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Sorting Challenge

Name: Anonymous 2013-09-24 13:24

write the fastest algorithm to sort 16777215 random unsigned 32-bit integers in ascending order(0 to max uint32).

Name: Anonymous 2013-09-24 13:30

I can't, I'm on a 64 bit OS.

Name: Anonymous 2013-09-24 13:36

>>2
Why are you using that antique? get with the times gramps.

Name: Anonymous 2013-09-24 13:37

>>2
install 32 bit gentoo

Name: Anonymous 2013-09-24 13:41

install gentoo

Name: Anonymous 2013-09-24 13:46

install steamOS

Name: Anonymous 2013-09-24 13:51

>>2
You know.. nothing prevents you from using 32-bit numbers inside a 64-bit OS.
In fact your 64-bit OS probably runs 32-bit drivers.

Name: Anonymous 2013-09-24 13:53

How do I install gentoo with 32 bit drivers?

Name: Anonymous 2013-09-24 13:56

Read SICP.

Name: Anonymous 2013-09-24 13:57

#include "void.h"
//4bit radix sort
void u4sort3and(u4* a,u4 size){ int COUNT[16], i;u4* t;//>>0 >>4
#define radix4a(byte,size,A,TEMP)  memset(COUNT,0,16*4);\
for ( i = 0; i < size; ++i)++COUNT[(((A[i]) >> (byte<<2))&0xf)];\
for ( i = 1; i < (16); ++i)COUNT[i] += COUNT[i - 1];\
for ( i = size - 1; i >= 0; --i) {TEMP[COUNT[((A[i] >> (byte<<2)) &0xf)] - 1] = A[i];\
--COUNT[((A[i] >> (byte<<2))&0xf)];}
if(size<1024){u4 t1[size];t=(u4*)&t1;}else{ t=malloc(size*4);};
radix4a(0, size, a,t);radix4a(1, size, t,a);
radix4a(2, size, a,t);radix4a(3, size, t,a);
radix4a(4, size, a,t);radix4a(5, size, t,a);
radix4a(6, size, a,t);radix4a(7, size, t,a);
free(t);}

Name: Anonymous 2013-09-24 13:58

chek `em dubs

Name: Anonymous 2013-09-24 14:02

>>8
read sicp

Name: Anonymous 2013-09-24 14:11

read sicp

Name: Anonymous 2013-09-24 14:12

>>3
I'm bleeding edge. I use 64 bit Windows 8.

Unfortunately I can't write this sorting algorithm until I read SICP and install gentoo or get 32-bit drivers for my OS. I will see you in a few months.

Name: Anonymous 2013-09-24 14:20

>>14

>windows 8

▒▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒▒░▒▒▒░▒
▒░▒▒▒▒▒▄▄▀░░░░░▀▄▄▒▒▒▒░▒▒▒░▒▒▒
▒▒▒░▒███▀▀▀▀███████▄▒▒▒▒░▒▒▒░▒
▒░▒███▀░░░░░▐███████▌▒░▒▒▒░▒▒▒
▒▒██▌░░░░░░░░▀███████▌▒▒░▒▒▒░▒
▒▐██░░░░░░░░░░░▀██████▒▒▒▒░▒▒▒
▒▐█▌░░░░░░░░░░░░▀████▌▒▒░▒▒▒░▒
▒▒█░░░░░░░░░░░░░░▀██▀░░▒▒▒░▒▒▒
▒░█░░░░░░░░░░░░░░░▀█░░░▒░▒▒▒░▒
▒▒▐░░░░░░░▀▄▄▄▀░▄▀░█░░░▒▒▒░▒▒▒
▒░▒░▄█▀▄░▄▀░█░▀▌░░░▀░░░▒░▒▒▒░▒
▒▒▒▐░▀░░▌░▌░░░░▐░░░░░░░▀▄▒▒▒▒▒
▒░▒▐░░░▐░▒░▀▄▄▄▀░░░░░░▐▒▒▀▀▄▄▒
▒▒▒▒▀▀▀░▒░░░░░▒░░░░░░░▐▒▒▒▒▒▒▀
▒░▒▒▒░░░░▒▒░░▄▄▒░░░░░▐▒▒░▒▒▒▒▒
▒▒▒░▒▒░░▀▄▄▀▀░░▒░░░░▐▒▒░▒▒▒▒▒▒
▒░▒▒▒▄▀▄░░░░░░░░░░░▄▒▒░▒▒▒▒▒▒▒
▒▒▒▄▀▒▒▒▀░░░░░░░░▄▀▒▒░▒▒▒▒▒░▒▒
▒▄▀▒▒▒▒▒▒▀▒▄░░░▄▀▒▒▒░▒▒▒▒▒░▒▒▒
▀▒▒▒▒▒▒▒▒▄▄█████▄▒▒░▒▒▒▒▒░▒▒▒▒

Name: Anonymous 2013-09-24 14:59

install gentoo

Name: Anonymous 2013-09-24 17:25

install gentoo

Name: Anonymous 2013-09-24 17:26

insert generic heapsort here

Name: Anonymous 2013-09-25 4:37

>>10
Where can i find void.h?

Name: Anonymous 2013-09-25 4:50

>>19
You must write it yourself.

Name: Friendly Homework Helper! 2013-09-25 6:14

bubble sort

Name: Anonymous 2013-09-25 6:17

>>20
Your computer doesn't have one?
That's odd.
You should probably ask the distributors of your operating system. It's a serious problem if that's missing. It means you're likely have hackers rooting your box

Name: Anonymous 2013-09-25 7:18

sleep sort

Name: Anonymous 2013-09-25 16:12

>>22
nice dabs

Name: Anonymous 2013-09-25 16:16

install gentoo

Don't change these.
Name: Email:
Entire Thread Thread List