Skip to content

Commit

Permalink
writing improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
pritam-dey3 committed Feb 9, 2020
1 parent 389466f commit 6a5cc9d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
.RData
.Ruserdata
pdfs
data
plots
4 changes: 0 additions & 4 deletions data.csv

This file was deleted.

12 changes: 12 additions & 0 deletions gap sequences.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@ CI01 <- function(s){
}
ShellSort(s, Gaps = gap)
}

GB91 <- function(s) {
gap <- numeric(0)
N = length(s)
a = max(floor(5*N/11), 1)
while(a > 1){
gap = c(a, gap)
a = max(floor(5*a/11), 1)
}
gap = c(1, gap)
ShellSort(s, Gaps = gap)
}

0 comments on commit 6a5cc9d

Please sign in to comment.