-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.jl
More file actions
42 lines (26 loc) · 701 Bytes
/
Copy pathmain.jl
File metadata and controls
42 lines (26 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
push!(LOAD_PATH, ".")
using Types
import Data
import BruteForce
import Metrics
import Achlioptas
import Gaussian
function main()
srand(1234)
# numDocs::Int64 = 1000
numDocs::Int64 = 1000
@time M::Matrix{M_Matrix_Int_Type} = Data.read(numDocs)
println()
M_dist::Matrix{M_Matrix_Float_Type} = BruteForce.run(numDocs, M)
for i in 1:8
k = 4 ^ i # k << d
println("=====================================")
println(" k = $(k)")
println("=====================================")
Achlioptas.run(numDocs, k, M, M_dist)
println()
Gaussian.run(numDocs, k, M, M_dist)
println("")
end
end
@time main()