Skip to content

Instantly share code, notes, and snippets.

View hayamiz's full-sized avatar

Yuto Hayamizu hayamiz

View GitHub Profile
set term postscript enhanced color eps
set size 0.6, 0.6
set logscale x
set logscale y
set ylabel "Execution time [sec]"
set xlabel "Input array size"
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"time"
"math/rand"
"container/list"
)
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"math/rand"
"time"
)
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"math/rand"
"container/list"
)
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"math/rand"
"container/list"
)
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"math/rand"
)
type BinaryHeap struct {
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"math/rand"
)
func quick_sort(data []int, low int, up int) {
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"math/rand"
)
func quick_sort(data []int, low int, up int) {
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"math/rand"
)
func merge_sort(data []int, low int, up int) []int {
//usr/bin/env go run $0 $@ ; exit
package main
import (
"fmt"
"math/rand"
)
func main() {