Jump to content

Recommended Posts

Posted

please send me the c code for implementing lexicographic order using Radix sort

 

Alphabets(0-9 , a-z , #, *)

Posted (edited)

We will not solve your problem, you have to work something up .. and we will help you

 

Here is a reference on Radix Sort: Wikipedia:Radix Sort

 

Your alphabet is { 0-9, a-z, #, * } which you need to convert into numeric form { 0-9, 10-35, 36, 37 }

 

And then you simply sort using the condition [math]\{ \; \forall x, y \in A \;\; | \;\; x < y \Rightarrow index(x) < index(y) \; \}[/math]

 

.. good luck

Edited by khaled

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.