or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Mergesort (in array) with Thread Pool
contributed by <
jkrvivian
>, <vic85821
>預期目標
產生大量的資料
怎麼產生大量的亂數資料?
input.txt
rand()
產生亂數,範圍為0~2147483647
RAND_MAX
定義在stdlib.h
0~32767
家裡的windows 7電腦的範圍只有一點點更改mergesort-concurrent
max_cut
的作用 … 拿掉cut_func
與merge_sort
作用相同 … 擇一linked list 改成 array (沿用上週的mergesort-concurrent)
使用 phonebook 讀字串的方式實做,而不是integer排序
intptr_t
改成字串問題
原本的步驟為 讀取資料到 array -> divide -> merge
data > memory malloc avaliale
分析
測試100次, sort 2000筆資料所需時間

重新設計程式
目標
tags:
system embedded
Team9