Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7872787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:18:54+00:00 2026-06-03T02:18:54+00:00

I have a school assignment, visualization of sorting algorithms (mergesort, bubblesort). I looked at

  • 0

I have a school assignment, visualization of sorting algorithms (mergesort, bubblesort). I looked at libraries like Processing, JsAnim, cake and couple of others but not sure whether they will be useful for my application (visualizing sort algorithms).

I am familiar with C# and little javascript. any libraries that would be appropriate for my need?

Thanks a lot

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:18:55+00:00Added an answer on June 3, 2026 at 2:18 am

    I had such task when was writing parallel sorting. I used C# ZedGraph library:

    ZedGraph tutorial

    The main idea was to represent the value of sort element like a vertical line with appropriate height( like a histogram).

    This how it looks before sotring:

    enter image description here

    And after:

    enter image description here

    So we see that all elements is sorted.

    To visualize every step of process I changed values of zedgraph control and refresh it. In my code it looked like:

    private static void CreateGraph3(ZedGraphControl zgc)
        {
            // get a reference to the GraphPane
            GraphPane pane = zgc.GraphPane;
    
            // Set the Titles
            pane.Title.Text = "Sorting";
            //Clear current values
            pane.CurveList.Clear();
    
            // histogram high
            double[] values = new double[n];
    
            //fill values
            for (int i = 0; i < n; i++)
            {
                values[i] = A1[i]; //A1 is an array that is currently sort
            }
    
            //create histogram
            BarItem curve = pane.AddBar("Elements", null, values, Color.Blue);
    
            pane.BarSettings.MinClusterGap = 0.0F; //set columns references
    
            // update axis
            zgc.AxisChange();
    
            // update graph
            zgc.Invalidate();
        }
    

    I call this function every time some values has been sorted, so we see a video of whole process of sorting.
    To include current library to your project you need to:

    1) Right click on your toolbox

    2) Choose (or add) items

    3) Browse, Select ZedGraph.DLL and press OK

    4) ZedGraphControl will be added to your toolbox and you can use it like another controls.

    So this is it, good luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For a school assignment I have to create a C++ program that will create
Hello is have a question for a school assignment i need to : Read
I have to implement a search algorithm for a school assignment. Right now, i'm
I have an assignment for school, and I'm not sure how the teacher wants
For a school assignment, we have to make a Usecase diagram. But the documentation
We have to create an application for iPhone and Android as a school assignment.
I have the following directory structure: folder1/ folder2/ compiler.java For a school assignment, we
What's a clear way of doing this? For a school assignment I have to
This is a school assignment and I have most of it under control, but
I have an assignment at school to build a webserver that handles GET/HEAD/PUT requests,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.