[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

i need a couple of code about MERGE SORT

Hi,
  i need  to merge sort code for visual basic. i want to arrange in order some random numerical value by merge sort algorithm. But i can't. Please help me.  Can you write to merge sort code  for VB?
  thanks......
0
firederik
Asked:
firederik
1 Solution
 
RodStephensCommented:
Take a look at:

    http://www.vb-helper.com/howto/mergsort.zip

If you just want a general sorting algorithm and it doesn't have to be mergesort, you're probably better off using some other algorithm. Quicksort is usually faster. For an example, look at:

    http://www.vb-helper.com/howto/sort.zip

Depending on how your numeric data is arranged, countingsort and other algorithms may be much faster. I don't have examples of those posted but you can find them in my book "Ready-to-Run Visual Basic Algorithms" (http://www.vb-helper.com/vba.htm).
0
 
DanRollinsCommented:
Hi firederik@devx,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept RodStephens's comment(s) as an answer.

firederik@devx, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
Computer101Commented:
Comment from expert accepted as answer

Computer101
E-E Moderator
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now