summaryrefslogtreecommitdiff
path: root/bubble.ads
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2015-10-14 12:21:23 +1100
committerJed Barber <jjbarber@y7mail.com>2015-10-14 12:21:23 +1100
commit3e30658ec5ca3ade4f9295129729127a30b4addf (patch)
treeb18666d29be5e71892f07f084a2b96d731358a1e /bubble.ads
parente8b414fc52cd70dc0d59a8f182eac1d72e56fa6d (diff)
Added bubble, quick, selection, merge, gnome sorting algorithms
Diffstat (limited to 'bubble.ads')
-rw-r--r--bubble.ads17
1 files changed, 17 insertions, 0 deletions
diff --git a/bubble.ads b/bubble.ads
new file mode 100644
index 0000000..529c5c6
--- /dev/null
+++ b/bubble.ads
@@ -0,0 +1,17 @@
+
+
+generic
+
+ type Index_T is (<>);
+ type Element_T is private;
+ type Array_T is array (Index_T range <>) of Element_T;
+
+ with function ">"(X, Y : in Element_T) return Boolean is <>;
+
+package Bubble is
+
+ procedure Sort(Arr : in out Array_T);
+ procedure Optimized(Arr : in out Array_T);
+
+end Bubble;
+