GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Radix cleanup (#47) · arpanpathak/AlgorithmVisualizer@88914ec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • algorithm
    • category.json
    • sorting
      • radixlsd/basic
        • data.js
      • radix
        • desc.json
        • lsd
          • code.js
          • data.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎algorithm/category.json‎

Copy file name to clipboardExpand all lines: algorithm/category.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"quick": "Quicksort",
3232
"merge": "Mergesort",
3333
"heap" : "Heap Sort",
34-
"radixlsd" : "Radix LSD sort"
34+
"radix" : "Radix Sort"
3535
}
3636
},
3737
"string": {
Collapse file

‎algorithm/sorting/radixlsd/desc.json‎ ‎algorithm/sorting/radix/desc.json‎algorithm/sorting/radixlsd/desc.json renamed to algorithm/sorting/radix/desc.json

Copy file name to clipboardExpand all lines: algorithm/sorting/radix/desc.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"<a href='https://en.wikipedia.org/wiki/Radix_sort'>Wikipedia</a>"
99
],
1010
"files": {
11-
"basic": "Basic"
11+
"lsd": "LSD Radix sort"
1212
}
1313
}
Collapse file

‎algorithm/sorting/radixlsd/basic/code.js‎ ‎algorithm/sorting/radix/lsd/code.js‎algorithm/sorting/radixlsd/basic/code.js renamed to algorithm/sorting/radix/lsd/code.js

Copy file name to clipboardExpand all lines: algorithm/sorting/radix/lsd/code.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ function pow(base, expo){
88
}
99
return ans;
1010
}
11-
for(var exp = 0; exp < 6;exp ++){
12-
tracer._print("Bit "+exp);
11+
for(var exp = 0; exp < 3;exp ++){
12+
tracer._print("Digit: "+exp);
1313
for(var i = 0; i < D[0].length; i++){
1414
tracer._select(0, i);
1515
D[2][ parseInt( D[0][i] / pow(10, exp) % 10) ] += 1;
Collapse file

‎algorithm/sorting/radix/lsd/data.js‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var tracer = new Array2DTracer();
2+
var k = Array1D.random(10, 1, 999);
3+
var D = [
4+
k,
5+
[0,0,0,0,0,0,0,0,0,0],
6+
[0,0,0,0,0,0,0,0,0,0]
7+
];
8+
tracer._setData(D);
Collapse file

‎algorithm/sorting/radixlsd/basic/data.js‎

Copy file name to clipboardExpand all lines: algorithm/sorting/radixlsd/basic/data.js
-8Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.