summaryrefslogtreecommitdiff
path: root/sort
diff options
context:
space:
mode:
Diffstat (limited to 'sort')
-rw-r--r--sort/bottomupmerge.go2
-rw-r--r--sort/insertion.go2
-rw-r--r--sort/merge.go2
-rw-r--r--sort/parallelmerge.go3
-rw-r--r--sort/parallelquick.go3
-rw-r--r--sort/quick.go3
-rw-r--r--sort/quick3way.go2
-rw-r--r--sort/selection.go2
-rw-r--r--sort/shell.go2
-rw-r--r--sort/shuffle.go3
-rw-r--r--sort/sort_test.go3
11 files changed, 16 insertions, 11 deletions
diff --git a/sort/bottomupmerge.go b/sort/bottomupmerge.go
index c0ae4fd..467c4e0 100644
--- a/sort/bottomupmerge.go
+++ b/sort/bottomupmerge.go
@@ -1,7 +1,7 @@
package sort
import (
- "algorithms/ds"
+ "github.com/snonux/algorithms/ds"
)
func BottomUpMerge(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/insertion.go b/sort/insertion.go
index 203d4f2..bba3698 100644
--- a/sort/insertion.go
+++ b/sort/insertion.go
@@ -1,7 +1,7 @@
package sort
import (
- "algorithms/ds"
+ "github.com/snonux/algorithms/ds"
)
func Insertion(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/merge.go b/sort/merge.go
index 4d5a862..e2cfe01 100644
--- a/sort/merge.go
+++ b/sort/merge.go
@@ -1,7 +1,7 @@
package sort
import (
- "algorithms/ds"
+ "github.com/snonux/algorithms/ds"
)
func Merge(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/parallelmerge.go b/sort/parallelmerge.go
index c379883..5186632 100644
--- a/sort/parallelmerge.go
+++ b/sort/parallelmerge.go
@@ -1,8 +1,9 @@
package sort
import (
- "algorithms/ds"
"sync"
+
+ "github.com/snonux/algorithms/ds"
)
func ParallelMerge(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/parallelquick.go b/sort/parallelquick.go
index 7533d35..195a2c8 100644
--- a/sort/parallelquick.go
+++ b/sort/parallelquick.go
@@ -1,8 +1,9 @@
package sort
import (
- "algorithms/ds"
"sync"
+
+ "github.com/snonux/algorithms/ds"
)
func ParallelQuick(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/quick.go b/sort/quick.go
index f3502e5..3502cf0 100644
--- a/sort/quick.go
+++ b/sort/quick.go
@@ -1,8 +1,9 @@
package sort
import (
- "algorithms/ds"
"math/rand"
+
+ "github.com/snonux/algorithms/ds"
)
func Quick(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/quick3way.go b/sort/quick3way.go
index 8434111..76e15c8 100644
--- a/sort/quick3way.go
+++ b/sort/quick3way.go
@@ -1,7 +1,7 @@
package sort
import (
- "algorithms/ds"
+ "github.com/snonux/algorithms/ds"
)
// Quick3Way uses a 3-way partitioning so it is more efficient dealing with duplicates
diff --git a/sort/selection.go b/sort/selection.go
index a28437c..9b42b55 100644
--- a/sort/selection.go
+++ b/sort/selection.go
@@ -1,7 +1,7 @@
package sort
import (
- "algorithms/ds"
+ "github.com/snonux/algorithms/ds"
)
func Selection(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/shell.go b/sort/shell.go
index 5fab584..821dfc8 100644
--- a/sort/shell.go
+++ b/sort/shell.go
@@ -1,7 +1,7 @@
package sort
import (
- "algorithms/ds"
+ "github.com/snonux/algorithms/ds"
)
func Shell(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/shuffle.go b/sort/shuffle.go
index 3611f7b..cf42a85 100644
--- a/sort/shuffle.go
+++ b/sort/shuffle.go
@@ -1,8 +1,9 @@
package sort
import (
- "algorithms/ds"
"math/rand"
+
+ "github.com/snonux/algorithms/ds"
)
func Shuffle(a ds.ArrayList) ds.ArrayList {
diff --git a/sort/sort_test.go b/sort/sort_test.go
index 2ca6f91..d785d55 100644
--- a/sort/sort_test.go
+++ b/sort/sort_test.go
@@ -1,9 +1,10 @@
package sort
import (
- "algorithms/ds"
"fmt"
"testing"
+
+ "github.com/snonux/algorithms/ds"
)
// Store results here to avoid compiler optimizations