Data Structures Chapter 4 Linked Lists

Size: px
Start display at page:

Download "Data Structures Chapter 4 Linked Lists"

Transcription

1 Data Structures Chapter 4 Linked Lists Instructor: Ching Chi Lin 林 清 池 助 理 教 授 chingchi.lin@gmail.com Department of Computer Science and Engineering National Taiwan Ocean University

2 Outline Singly Linked Lists and Chains ( 單 向 鏈 結 串 列 與 鏈 ) Representing Chains in C ( 用 C 語 言 來 表 示 鏈 ) Linked Stacks and Queues ( 鏈 結 堆 疊 與 鏈 結 佇 列 ) Polynomials ( 多 項 式 ) Additional List Operations ( 更 多 的 串 列 運 算 ) Equivalence Classes ( 等 價 關 係 ) Sparse Matrices ( 稀 疏 矩 陣 ) Doubly Linked Lists ( 雙 向 鏈 結 串 列 ) 2

3 Singly Linked Lists and Chains 1/4 ( 單 向 鏈 結 串 列 與 鏈 ) We studied the representation of simple data structures using an array and a sequential mapping. ( 我 們 已 學 習 使 用 陣 列 和 循 序 映 射 的 簡 易 資 料 結 構 ) These representations had the property that successive nodes of the data object were stored a fixed distance. ( 連 續 的 資 料 物 件 以 相 等 距 離 的 節 點 來 儲 存 ) Problems: When a sequential mapping is used for ordered lists: No more storage available. ( 沒 有 可 用 的 空 間 ) We could waste storage. ( 浪 費 空 間 ) Excessive data movement is required for deletions and insertions. ( 在 插 入 及 刪 除 的 過 程 中, 會 需 要 大 量 的 資 料 搬 遷 ) 3

4 Singly Linked Lists and Chains 2/4 ( 單 向 鏈 結 串 列 與 鏈 ) Original BAT CAT FAT HAT JAT Insert EAT after CAT: move 3elements BAT CAT EAT FAT HAT JAT Delete EAT : move 3elements BAT CAT FAT HAT JAT 4

5 Singly Linked Lists and Chains 3/4 ( 單 向 鏈 結 串 列 與 鏈 ) Solution: using linked representation BAT CAT EAT FAT HAT A linked list is comprised of nodes; each node has zero or more data fields and one or more link or pointer fields. ( 鏈 結 串 列 由 節 點 組 成, 每 一 個 節 點 包 含 資 料 項 及 指 標 項 ) The nodes may be placed anywhere in memory. ( 節 點 可 放 置 在 記 憶 體 的 任 何 位 子 ) With each node we store the address of location of the next node in the list. ( 每 一 節 點 紀 錄 著 下 一 節 點 的 位 置 ) 5

6 Singly Linked Lists and Chains 4/4 ( 單 向 鏈 結 串 列 與 鏈 ) In a singly linked list, each node has exactly one pointer field. ( 在 單 向 鏈 結 串 列 裡, 每 一 個 節 點 恰 有 一 個 指 標 項 ) A singly linked list in which the last node has a null link is called a chain ( 如 果 一 個 單 向 鏈 結 串 列 的 最 後 一 個 節 點 的 指 標 指 向, 我 們 稱 這 個 鏈 結 串 列 為 鍊 ) BAT CAT EAT FAT HAT 6

7 Functions of Linked List 1/2 Insert Step 1: Get a node a that is currently unused. Step 2: Set the data field of a to EAT. Step 3: Set the link field of a to the node after CAT, which contains FAT. Step 4: Set the link field of the node containing CAT to a. BAT CAT FAT HAT JAT BAT CAT FAT HAT JAT Step 4 EAT Step 3 7

8 Functions of Linked List 2/2 Delete We only need to find the element that immediately precedes EAT, which is CAT, and set its link field to point to EAT s link. ( 只 需 要 找 出 EAT 的 前 一 項, 將 前 一 項 的 指 標 指 到 EAT 所 指 到 的 節 點 ) We have not moved any data, although the link field of EAT still points to FAT, EAT is no longer in the list. ( 不 需 要 宜 除 任 何 資 料, 雖 然 EAT 的 指 標 仍 然 指 向 指 向 FAT, 但 EAT 已 不 在 串 列 中 ) BAT CAT EAT FAT HAT JAT 8

9 Outline Singly Linked Lists and Chains ( 單 向 鏈 結 串 列 與 鏈 ) Representing Chains in C ( 用 C 語 言 來 表 示 鏈 ) Linked Stacks and Queues ( 鏈 結 堆 疊 與 鏈 結 佇 列 ) Polynomials ( 多 項 式 ) Additional List Operations ( 更 多 的 串 列 運 算 ) Equivalence Classes ( 等 價 關 係 ) Sparse Matrices ( 稀 疏 矩 陣 ) Doubly Linked Lists ( 雙 向 鏈 結 串 列 ) 9

10 Pointers C provides extensive supports for pointers. Any type T in C there is a corresponding type pointer to T. ( 在 C 程 式 語 言 中 的 任 何 資 料 型 態, 都 有 其 相 對 應 的 指 標 ) The two most important operators used with the pointer type are: & the address operator * the dereferencing (indirection) operator Example: int i, *pi; i is an integer variable and pi is a pointer to an integer. pi = &i; &i returns the address of i and assigns it as the value of pi. i = 10; or *pi = 10; to assign a value to i if (pi == ) or if (!pi); to test if the pointer is null. 10

11 Pointers Can Be Dangerous 1/2 Using pointers: high degree of flexibility and efficiency, but dangerous as well. ( 使 用 指 標 雖 然 可 以 獲 得 高 度 彈 性 與 效 率, 但 指 標 也 可 能 是 危 險 的 ) It is a wise practice to set all pointers to when they are not actually pointing to an object. ( 將 沒 有 實 際 指 向 物 件 的 所 有 指 標 設 定 為 ) Using explicit type cast when converting between pointer types. ( 在 指 標 型 態 轉 換 時, 使 用 明 確 的 type cast.) Example: pi = malloc(sizeof(int)); /*assign to pi a pointer to int*/ pf = (float *)pi; /*casts an int pointer to a float pointer*/ 11

12 Pointers Can Be Dangerous 2/2 In many systems, pointers have the same size as type int. ( 在 許 多 系 統 中, 指 標 的 大 小 和 int 型 態 的 大 小 相 同 ) Since int is the default type specifier, some programmers omit the return type when defining a function. ( 由 於 int 為 預 設 函 數 型 態, 一 些 程 式 設 計 師 定 義 函 數 時 省 略 了 傳 回 型 態 ) The return type defaults to int which can later be interpreted as a pointer. ( 預 設 為 int 的 傳 回 型 態 可 被 解 釋 為 一 個 指 標 ) The programmer is urged to define explicit return for functions. ( 程 式 人 員 被 要 求 應 為 函 數 定 義 明 確 的 傳 回 型 態 ) 12

13 Using Dynamically Allocated Storage C provides a mechanism, called heap, for allocating storage at run time. (C 提 供 一 種 機 制, 稱 之 為 heap, 使 我 們 可 以 在 執 行 時 期 配 置 記 憶 體 ) malloc: a function provided in C for performing dynamic memory allocation. free: a function provided in C for returning the area of memory to the system. Example: 13

14 Example 4.1: List of words The following declarations contain an example of selfreferential structure. ( 以 下 為 一 個 自 身 參 考 結 構 的 範 例 ) C allows us to create a pointer to a type that does not yet exist. (C 允 許 我 們 建 立 指 向 尚 未 存 在 的 型 態 指 標 ) typedef struct list_node *list_pointer; typedef struct list_node{ char data[4]; list_pointer link; To create a new empty list: list_pointer first = ; To define an IS_EMPTY macro to test for an empty list: #define IS_EMPTY (first) (!(first)) 14

15 Example 4.1: List of words To obtain a new node: first = (list_pointer) malloc(sizeof(list_node)); To place the word BAT into our list: strcpy (first data, BAT ); first link =; If e is a pointer to a structure, then e name is equal to (*e).name first B A T \0 15 first data[0] first data[1] first data[2] first link first data[3]

16 Program 4.1:Create a two node list Two node linked list list_pointer create2() { /* create a linked list with two nodes */ list_pointer first, second; first = (list_pointer)malloc(sizeof(list_node)); second = (list_pointer)malloc(sizeof(list_node)); second link = ; second data = 20; first data = 10; first link = second; return first; typedef struct list_node *list_pointer; typedef struct list_node { int data; list_pointer link; ; first

17 Program 4.2:Simple insert into front of list List insertion void insert(list_pointer *first, list_ointer x) { /* insert a new node with data = 50 into the chain first after node x */ list_pointer temp; temp = (list_poitner)malloc(sizeof(list_node)); if(is_full(temp)){ fprintf(stderr, The memory is full\n ); exit(1); temp >data = 50; if(*first) { temp link = x link; node link = temp; else { temp link = ; *first = temp; Function call: insert(&first, x); 17 Case 1:a nonempty list *first Case 2:an empty list *first temp x : points to the node that precedes the new node we wish to insert. 50 x 50

18 Program 4.3: Deletion from a list void delete(list_pointer *first, list_pointer trail, list_pointer x) { /* delete x from the list, trail is the preceding node and *first is the front of the list */ if(trail) trail link = x link; else *first = (*first) link; free(x); Function call: delete(&first, trail, trail link); x : points to the node that we wish to delete trail: points to the node that precedes x Function call: delete(&first,, first); Case 1: trail x Case 2: trail = *first, trail *first, x

19 Program 4.4:Printing a list Printing out a list void print_list(list_pointer first) { printf( The list contains: ); for (; first; first = first link) printf( %4d, first data); printf( \n ); first

20 Outline Singly Linked Lists and Chains ( 單 向 鏈 結 串 列 與 鏈 ) Representing Chains in C ( 用 C 語 言 來 表 示 鏈 ) Linked Stacks and Queues ( 鏈 結 堆 疊 與 鏈 結 佇 列 ) Polynomials ( 多 項 式 ) Additional List Operations ( 更 多 的 串 列 運 算 ) Equivalence Classes ( 等 價 關 係 ) Sparse Matrices ( 稀 疏 矩 陣 ) Doubly Linked Lists ( 雙 向 鏈 結 串 列 ) 20

21 Linked Stack and Queue The direction of links for both stack and the queue facilitate easy insertion and deletion of nodes. ( 鏈 結 的 方 向 使 得 插 入 和 刪 除 節 點 更 容 易 進 行 ) Easily add or delete a node form the top of the stack. Easily add a node to the rear of the queue and delete a node at the front of a queue. top (a) Linked stack front (b) Linked queue data link data link rear 21

22 Declarations and The Initial Condition for Stacks The declarations #define MAX_STACKS 10 /*maximum number of stacks */ typedef struct{ int key; /*other fields */ element; typedef struct stack *stack_pointer; typedef struct stack{ element data; stack_pointer link; ; stack_pointer top[max_stacks]; The initial condition top[i] =, 0 i < MAX_STACKS; 22

23 Program 4.5 : Add to A Linked Stack void push(stack_pointer *top, element item) { /* add an item to the top of the stack */ stack_pointer temp = (stack_pointer) malloc(sizeof(stack)); if(is_full(temp)) { fprintf(stderr, The memory is full\n ); exit(1); temp data = item; temp link = *top; *top = temp; temp *top 23

24 Program 4.6 : Delete from A Linked Stack element pop(stack_pointer *top) { /* remove top element from the stack */ stack_pointer temp = *top; element item; if (IS_EMPTY(temp)) { fprintf(stderr, The stack is empty\n ); exit(1); item = temp data; *top = temp link; free(temp); return item; temp *top 24

25 Declarations and The Initial Condition for Queues The declarations #define MAX_QUEUES 10 /*maximum number of queues */ typedef struct queue *queue_pointer; typedef struct queue { element data; queue_pointer link; ; queue_pointer front[max_queues], rear[max_queues]; The initial condition front[i] =, 0 i < MAX_QUEUES; 25

26 Program 4.7 : Add to The Rear of a Linked Queue 26 void addq(queue_pointer *front, queue_pointer *rear, element item) { /*add an element to the rear of the queue*/ queue_pointer temp = (queue_pointer) malloc(sizeof(queue)); if (IS_FULL(temp)) { fprintf(stderr, The memory is full\n ); exit(1); Case 1: *front *front *rear temp data = item; temp link = ; if (*front) (*rear) link = temp; else *front = temp; Case 2: *front = *rear = temp; temp *front *rear temp

27 Program 4.8 : Delete From the Front of a Linked Queue element deleteq(queue_pointer *front) { /* delete an element from the queue */ queue_pointer temp = *front; element item; if (IS_EMPTY(*front)) { fprintf(stderr, The queue is empty\n ); exit(1); item = temp data; *front = temp link; free(temp); *front return item; temp rear 27

28 Outline Singly Linked Lists and Chains ( 單 向 鏈 結 串 列 與 鏈 ) Representing Chains in C ( 用 C 語 言 來 表 示 鏈 ) Linked Stacks and Queues ( 鏈 結 堆 疊 與 鏈 結 佇 列 ) Polynomials ( 多 項 式 ) Additional List Operations ( 更 多 的 串 列 運 算 ) Equivalence Classes ( 等 價 關 係 ) Sparse Matrices ( 稀 疏 矩 陣 ) Doubly Linked Lists ( 雙 向 鏈 結 串 列 ) 28

29 Polynomial Representation We want to represent the polynomial : We will represent each term as a node containing coefficient and exponent fields, as well as a pointer to the next term. Declarations: em 1 A( x) = a x + L+ m 1 a 0 x e 0 typedef struct poly_node *poly_pointer; typedef struct poly_node { int coef; int expon; poly_pointer link; ; coef expon link poly_node 29

30 Figure 4.12 Examples: a = 3x x a b = 8x 14 3x x 6 b

31 Generating The First Three Terms of c = a + b 1/3 a b c (1) a expon == b expon 31

32 Generating The First Three Terms of c = a + b 2/3 a b c (2) a expon < b expon 32

33 Generating The First Three Terms of c = a + b 2/3 a b c (3) a expon > b expon 33

34 Program 4.9 : Add Two Polynomials 1/2 34 poly_pointer padd(poly_pointer a, poly_pointer b) { /* return a polynomial which is the sum of a and b */ poly_pointer front, rear, temp; int sum; rear = (poly_pointer)malloc(sizeof(poly_node)); if (IS_FULL(rear)){ fprintf(stderr, The memory is full\n ); exit(1) front = rear; while (a && b) switch (COMPARE(a expon, b expon)) { case 1: /* a >expon < b >expon */ attach(b coef, b expon, &rear); b = b link; break;

35 Program 4.9 : Add Two Polynomials 2/2 case 0: /* a expon = b expon */ sum = a coef + b coef; if (sum) attach(sum, a >expon, &rear); a = a link; b = b link; break; case 1: /* a expon > b expon */ attach(a coef, a expon, &rear); a = a link; /* copy rest of list a and then list b*/ for (; a; a = a link) attach(a coef, a expon, &rear); for (; b; b = b link) attach(b coef, b expon, &rear); rear >link = : /* delete extra initial node */ temp = front; front = front link; free(temp); return front; 35

36 Program 4.10 : Attach A Node to The End of A List void attach(float coefficient, int exponent, poly_pointer *ptr) { /* create a new node with coef = coefficient and expon = exponent, attach it to the node pointed to by ptr. Ptr is updated to point to this new node */ poly_pointer temp; temp = (poly_pointer)mallc(sizeof(poly_node)); if (IS_FULL(temp)) { fprintf(stderr, The memory is full\n ); exit(1); temp coef = coefficient; temp expon = exponent; (*ptr) link = temp; *ptr = temp; 36

37 Analysis of padd Assume that a and b have m and n terms, respectively. A( x) e 1 e0 f 1 a x m n = + L+ a x and B( x = b x + L + m 1 0 ) n 1 b 0 x f 0 There are three cost measures: coefficient additions 0 number of coefficient additions min{m, n exponent comparisons On each iteration, either a or b or both move to the next term. The maximum number of exponent comparisons is m + n. create of new nodes for c The maximum number of terms in c is m + n. Therefore, the computing time is O(m + n). 37

38 Erasing Polynomials Read in polynomials a, b and d and then compute e = a * b + d. poly_pointer a, b, d, e... a = read_poly( ); b = read_poly( ); d = read_poly( ); temp = pmult(a, b); e = padd(temp,d); print_poly(e); We created temp only to hold a partial result for d. ( 一 些 節 點 是 為 保 存 部 分 結 果 而 建 立 ) By returning the nodes of temp, we may use them to hold other polynomials. ( 將 節 點 釋 放 回 去 之 前, 我 們 可 以 用 它 們 來 儲 存 其 他 多 項 式 ) 38

39 Program 4.11: Erasing a polynomial One by one, erase frees the nodes in temp. void erase(poly_pointer *ptr) { /* erase the polynomial pointed to by ptr */ poly_pointer temp; while (*ptr) { temp = *ptr; *ptr = (*ptr) link; free(temp); Can we free all the nodes of a polynomial more efficiently? 39

40 Circular List Representation of Polynomials A singly linked list in which the link field of the last node points to the first node is called a circular list. ( 如 果 一 個 單 向 鏈 結 串 列 的 最 後 一 個 節 點 的 指 標 指 向 第 一 個 節 點, 我 們 稱 這 個 鏈 結 串 列 為 環 狀 鏈 結 串 列 ) Circular representation of 3x x last In order to obtain an efficient erase algorithm, we maintain our own list of nodes that have been freed. ( 為 了 得 到 有 效 率 的 演 算 法, 我 們 建 立 一 個 串 列 將 已 經 釋 放 的 節 點 儲 存 起 來 ) Only when the list is empty do we need to use malloc to create a new node. ( 只 有 在 list 是 空 的 時 候, 我 們 使 用 malloc 去 建 立 一 個 新 節 點 ) 40

41 Functions for Representation of Polynomials Let avail be a variable of type poly_pointer that points to the first node in our list of freed nodes. (avail 指 向 釋 放 的 串 列 的 第 一 個 ) Instead of using malloc and free, we now use get_node and ret_node. ( 相 對 於 malloc 和 free, 我 們 現 在 使 用 get_node 和 ret_node) To avoid the special case of zero polynomials, we introduce a header node into each polynomial. ( 為 了 處 理 一 些 特 別 情 況, 我 們 在 每 一 個 多 項 式 中 加 入 header node ) Each polynomial, zero or nonzero, contains one additional node. avail list of freed nodes 41

42 Example Polynomials with header nodes header (a) Zero polynomial header (b) 3x x 8 + 1

43 Program 4.12 : get_node function 43 poly_pointer get_node(void) { /* provide a node for use */ poly_pointer node; if (avail) { node = avail; avail = avail link; else { node = (poly_pointer) malloc(sizeof(poly_node)); if (IS_FULL(node)) { fprintf(stderr, The memory is full\n ); exit(1); return node; 2 node 1 avail

44 Program 4.13 : ret_node function void ret_node(poly_pointer ptr) { /* return a node to the available list */ ptr link = avail; avail = ptr; ptr 2 1 avail 44

45 Program 4.14 : Erasing a circular list void cerase(poly_pointer *ptr) { /*erase the circular list ptr */ poly_poitner temp; if (*ptr) { temp = (*ptr) link; (*ptr) link = avail; avail = temp; *ptr = ; prt 3 2 temp 1 avail 45

46 Outline Singly Linked Lists and Chains ( 單 向 鏈 結 串 列 與 鏈 ) Representing Chains in C ( 用 C 語 言 來 表 示 鏈 ) Linked Stacks and Queues ( 鏈 結 堆 疊 與 鏈 結 佇 列 ) Polynomials ( 多 項 式 ) Additional List Operations ( 更 多 的 串 列 運 算 ) Equivalence Classes ( 等 價 關 係 ) Sparse Matrices ( 稀 疏 矩 陣 ) Doubly Linked Lists ( 雙 向 鏈 結 串 列 ) 46

47 Additional List Operations A singly linked list in which the last node has a null link is called a chain. Operations: Invert a chain Concatenate two chains ptr A singly linked list in which the link field of the last node points to the first node is called a circular list. Operations: Insert a node at the front of a circular list Determine the length of a circular list prt 47

48 Program 4.16:Inverting a singly linked list List_pointer invert (list_pointer lead) { /* invert the list pointed to by lead */ listpointer middle, trail; middle = ; while(lead){ trail = middle; middle = lead; lead = lead link; middle link = trail; return middle; lead lead 48

49 Program 4.17: Concatenating singly linked lists list_pointer concatenate (list_pointer ptr1, list_pointer ptr2) { /* produce a new list that contains the list ptr1 followed by the list ptr2. The list pointed to by ptr1 is changed permanently */ /* check for empty lists */ if (!ptr1) return ptr2; ptr1 if (!ptr2) return ptr1; /* neither list is empty, find end of first list */ for(temp = ptr1; temp link; temp = temp link); /* linked end of first to start of second */ temp link = ptr2; ptr2 49

50 Program 4.18 : Inserting at the front of a list void insert_front(list_pointer *last, list_pointer node) { /* insert node at the front of the circular list whose last node is last */ if (!(*last)){ /* list is empty, change last to point to new entry */ *last = node; node link = node; else{ /* list is not empty, add new entry at front node link = (*last) link; (*last) link = node; 1 *last 1 2 node *last 2 50

51 Program 4.19 : Finding the length of a circular list int length(list_pointer last) { /* find the length of circular list last */ list_pointer temp; int count = 0; if (last) { temp=last; do { count++ temp = temp link; while (temp!= last); return count; last 51

52 Outline Singly Linked Lists and Chains ( 單 向 鏈 結 串 列 與 鏈 ) Representing Chains in C ( 用 C 語 言 來 表 示 鏈 ) Linked Stacks and Queues ( 鏈 結 堆 疊 與 鏈 結 佇 列 ) Polynomials ( 多 項 式 ) Additional List Operations ( 更 多 的 串 列 運 算 ) Equivalence Classes ( 等 價 關 係 ) Sparse Matrices ( 稀 疏 矩 陣 ) Doubly Linked Lists ( 雙 向 鏈 結 串 列 ) 52

53 Sparse Matrices Representation When we performed matrix operations such as +,, or *, the number of nonzero terms varied. ( 執 行 運 算 後, 非 零 項 個 數 會 改 變 ) The sequential representation of sparse matrices suffered from the same inadequacies as the similar representation of polynomials. ( 稀 疏 矩 陣 的 循 序 表 示 和 多 項 式 循 序 表 示 有 相 同 的 缺 點 ) We use a linked list representation for sparse matrices. There are two types of nodes in the representation: header nodes and elements nodes. ( 共 有 兩 類 的 節 點, 標 頭 節 點 與 資 料 項 節 點 ) next row col value down right down right header node element node 53

54 Example : 4 x 5 sparse matrix H0 H1 H2 H3 H4 H H H H H

55 Sparse Matrices Representation We represent each column (row) of a sparse matrix as a circularly linked list with a header node. ( 每 一 行 ( 列 ) 都 以 環 狀 鏈 結 串 列 表 示 ) The header node for row i is also the header node for column i. The number of header nodes is max{ num_rows, num_cols. ( 列 i 的 標 頭 節 點 同 時 也 是 行 i 的 標 頭 節 點, 標 頭 節 點 的 個 數 為 max{ 列 數, 行 數 ) Each element node is simultaneously linked into two lists: a row list, and a column list. ( 每 一 個 資 料 節 點 出 現 在 兩 個 串 列 中 ) Each head node is belonged to three lists: a row list, a column list, and a header node list. ( 每 一 個 標 頭 節 點 出 現 在 三 個 串 列 中 ) next row col value down right down right header node element node 55

56 Outline Singly Linked Lists and Chains ( 單 向 鏈 結 串 列 與 鏈 ) Representing Chains in C ( 用 C 語 言 來 表 示 鏈 ) Linked Stacks and Queues ( 鏈 結 堆 疊 與 鏈 結 佇 列 ) Polynomials ( 多 項 式 ) Additional List Operations ( 更 多 的 串 列 運 算 ) Equivalence Classes ( 等 價 關 係 ) Sparse Matrices ( 稀 疏 矩 陣 ) Doubly Linked Lists ( 雙 向 鏈 結 串 列 ) 56

57 Doubly Linked Lists The Problem of a singly linked list: The only way to find the node that precedes p is to start at the beginning of the list. ( 找 p 節 點 的 前 一 節 點 的 唯 一 方 法 是 從 頭 開 始 找 ) When we have a problem in which it is necessary to move in either direction. ( 對 於 某 些 問 題, 雙 向 移 動 是 必 須 的 ) Therefore, it is useful to have doubly linked lists. declarations: typedef struct node *node_pointer; typedef struct node{ node_pointer llink; element data; node_pointer rlink; ; 57

58 Doubly linked circular list with header node Header node allows us to implement operations more easily. ptr = ptr llink rlink = ptr rlink llink Header Node left data right first Empty doubly linked circular list with header node 58

59 Program 4.26 Insertion into A Doubly Linked Circular List void dinsert(node_pointer node, node_pointer newnode) { /* insert newnode to the right of node */ newnode llink = node; newnode rlink = node rlink; node rlink llink = newnode; node rlink = newnode; node newnode

60 Program 4.27 Deletion from A Doubly Linked Circular List void ddelete(node_pointer node, node_pointer deleted) { /* delete from the doubly linked list */ if (node == deleted) printf( Deletion of head node not permitted. \n ); else { deleted >llink >rlink = deleted >rlink; deleted >rlink >llink = deleted >llink; free(deleted); node 1 2 deleted 60

61 Figure 4.23 void ddelete(node_pointer node, node_pointer deleted) { /* delete from the doubly linked list */ if (node == deleted) printf( Deletion of head node not permitted. \n ); else { deleted >llink >rlink = deleted >rlink; deleted >rlink >llink = deleted >llink; free(deleted); Before front front After x x Deletion in a doubly linked list with a single node 61

Data Structures Chapter 3 Stacks and Queues

Data Structures Chapter 3 Stacks and Queues Data Structures Chapter 3 Stacks and Queues Instructor: Ching Chi Lin 林 清 池 助 理 教 授 chingchi.lin@gmail.com Department of Computer Science and Engineering National Taiwan Ocean University Outline Stacks

More information

Case Study of a New Generation Call Center

Case Study of a New Generation Call Center Case Study of a New Generation Call Center Chiung-I Chang* and tzy-yau lee** *Department of Information Management National Taichung Institute of Technology E-mail: ccy@ntit.edu.tw **Department of Leisure

More information

Protel DXP 2004 Schematic 開 始 所 有 程 式 Altium DXP 2004

Protel DXP 2004 Schematic 開 始 所 有 程 式 Altium DXP 2004 Protel DXP 2004 Schematic 開 始 所 有 程 式 Altium DXP 2004 1 File New PCB Project 2 Save Project As Right click Project 儲 存 路 徑 不 可 以 有 中 文 3 D:\Exercise Project 儲 存 路 徑 不 可 以 有 中 文 4 Add New to Project Schematic

More information

Wi-Drive User Guide. (for use with Amazon s Kindle Fire) Document No. 480WID4KF-001.A01 Kingston Wi-Drive Page 1 of 15

Wi-Drive User Guide. (for use with Amazon s Kindle Fire) Document No. 480WID4KF-001.A01 Kingston Wi-Drive Page 1 of 15 Wi-Drive User Guide (for use with Amazon s Kindle Fire) Document No. 480WID4KF-001.A01 Kingston Wi-Drive Page 1 of 15 Table of Contents Introduction... 3 Requirements... 3 Supported File Types... 3 Install

More information

Machine Translation for Academic Purposes

Machine Translation for Academic Purposes Proceedings of the International Conference on TESOL and Translation 2009 December 2009: pp.133-148 Machine Translation for Academic Purposes Grace Hui-chin Lin PhD Texas A&M University College Station

More information

Chemistry I -- Final Exam

Chemistry I -- Final Exam Chemistry I -- Final Exam 01/1/13 Periodic Table of Elements Constants R = 8.314 J / mol K 1 atm = 760 Torr = 1.01x10 5 Pa = 0.081 L atm / K mol c =.9910 8 m/s = 8.314 L kpa / K mol h = 6.6310-34 Js Mass

More information

The HKICPA Accounting and Business Management Case Competition 2015-16. Secondary School Group (Level 1)

The HKICPA Accounting and Business Management Case Competition 2015-16. Secondary School Group (Level 1) The HKICPA Accounting and Business Management Case Competition 2015-16 Secondary School Group (Level 1) The HKICPA Accounting and Business Management Case Competition 2015-16 Secondary School Group (Level

More information

Ex. Either we must get in line early to buy the tickets, or only scalpers INDEPENDENT CLAUSE 1 INDEPENDENT tickets will be available.

Ex. Either we must get in line early to buy the tickets, or only scalpers INDEPENDENT CLAUSE 1 INDEPENDENT tickets will be available. THIRTEENTH WEEK PAGE 1 COMPOUND SENTENCES II The COMPOUND SENTENCE A. A COMPOUND SENTENCE contains two or more INDEPENDENT clauses. B. INDEPENDENT CLAUSES CAN stand alone, so it is very easy to separate

More information

The Government of The Hong Kong Special Administrative Region Procedures for Importation and Registration of Motor Vehicles & Motor Cycles

The Government of The Hong Kong Special Administrative Region Procedures for Importation and Registration of Motor Vehicles & Motor Cycles The Government of The Hong Kong Special Administrative Region Procedures for Importation and Registration of Motor Vehicles & Motor Cycles (Last revised on August 2014) The information below explains the

More information

(Chapter 218) APPLICATION FOR A LICENCE BY A BODY CORPORATE

(Chapter 218) APPLICATION FOR A LICENCE BY A BODY CORPORATE Monday Form Collection Time 8:45 a.m. 12:30 p.m. FORM 3 TRAVEL AGENTS ORDINANCE to Friday 2:00 p.m. 5:00 p.m. (Chapter 218) APPLICATION FOR A LICENCE BY A BODY CORPORATE [reg. 9(1)(b).] Application is

More information

Kingston MobileLite Wireless. (ßeta Release) Document No. 480WD+MLW.ß01 Kingston MobileLite Wireless (ßeta) Page 1 of 12

Kingston MobileLite Wireless. (ßeta Release) Document No. 480WD+MLW.ß01 Kingston MobileLite Wireless (ßeta) Page 1 of 12 Kingston MobileLite Wireless (ßeta Release) Document No. 480WD+MLW.ß01 Kingston MobileLite Wireless (ßeta) Page 1 of 12 Introduction MobileLite Wireless (simply referred to as MLW from this point forward)

More information

SHAU KEI WAN GOVERNMENT SECONDARY SCHOOL

SHAU KEI WAN GOVERNMENT SECONDARY SCHOOL 香 港 柴 灣 道 42 號 42 Chai Wan Road, Hong Kong Tel : (852) 2560 3544 Fax : (852) 2568 9708 URL : www.sgss.edu.hk Email : skwgss@edb.gov.hk 筲 箕 灣 官 立 中 學 SHAU KEI WAN GOVERNMENT SECONDARY SCHOOL --------------------------------------------------------------------------------------------------------------------------------

More information

LC Paper No. PWSC269/15-16(01)

LC Paper No. PWSC269/15-16(01) Legislative Council Public Works Subcommittee meeting on 11 June 2016 118KA Renovation works for the West Wing of the former Central Government Offices for office use by the Department of Justice and law-related

More information

轎 車 機 場 接 送 及 往 返 澳 門 與 香 港 機 場 接 送 服 務 禮 遇 ( 推 廣 ) 之 條 款 及 細 則 :

轎 車 機 場 接 送 及 往 返 澳 門 與 香 港 機 場 接 送 服 務 禮 遇 ( 推 廣 ) 之 條 款 及 細 則 : 一 般 條 款 及 細 則 Terms & Conditions : 轎 車 機 場 接 送 及 往 返 澳 門 與 香 港 機 場 接 送 服 務 禮 遇 ( 推 廣 ) 之 條 款 及 細 則 : (I) 一 般 條 款 : 1. 轎 車 機 場 接 送 及 往 返 澳 門 與 香 港 機 場 接 送 服 務 禮 遇 推 廣 由 即 日 起 至 2016 年 12 月 31 日 止 ( 推 廣

More information

促 進 市 場 競 爭 加 強 保 障 消 費 者

促 進 市 場 競 爭 加 強 保 障 消 費 者 通 訊 事 務 管 理 局 辦 公 室 2013 14 年 營 運 基 金 報 告 書 5 Facilitating Market Competition and Strengthening Consumer Protection 處 理 和 調 查 有 關 具 誤 導 性 或 欺 騙 性 行 為 的 電 訊 服 務 投 訴 2012 年 商 品 說 明 ( 不 良 營 商 手 法 )( 修 訂 )

More information

China M&A goes global

China M&A goes global China M&A goes global Hairong Li of Zhong Lun Law Firm explains the new regulations affecting inbound and outbound M&A, the industries most targeted by Chinese and foreign investors and the unique strategies

More information

EFL Business Writing with Task-based Learning Approach: A Case Study of Student Strategies to Overcome Difficulties

EFL Business Writing with Task-based Learning Approach: A Case Study of Student Strategies to Overcome Difficulties 2013 年 12 月 ISSN 1815-0373 第 十 卷 第 二 期 P217-238 EFL Business Writing with Task-based Learning Approach: A Case Study of Student Strategies to Overcome Difficulties Shu-Chiao Tsai Associate professor, Department

More information

Tender Document for Procurement of the Security Screening Equipment at MIA (RFQ-151)

Tender Document for Procurement of the Security Screening Equipment at MIA (RFQ-151) Tender Document for Procurement of the Security Screening Equipment at MIA (RFQ-151) Tender Time table Description Date Remark Open Tender Notice 23 April 2013 Deadline of Request for Site Visit: Bidder

More information

Microsoft Big Data 解決方案與案例分享

Microsoft Big Data 解決方案與案例分享 DBI 312 Microsoft Big Data 解決方案與案例分享 Rich Ho Technical Architect 微軟技術中心 Agenda What is Big Data? Microsoft Big Data Strategy Key Benefits of Microsoft Big Data Demo Case Study What is Big Data? The world

More information

Exploring the Relationship Between Critical Thinking and Active. Participation in Online Discussions and Essays

Exploring the Relationship Between Critical Thinking and Active. Participation in Online Discussions and Essays Exploring the Relationship Between Critical Thinking and Active Participation in Online Discussions and Essays Graham J. PASSMORE, Ellen Carter, & Tom O NEILL Lakehead University, Brock University, Brock

More information

Microsoft SQL Server PDW 新世代 MPP 資料倉儲解決方案

Microsoft SQL Server PDW 新世代 MPP 資料倉儲解決方案 DBI304 Microsoft SQL Server PDW 新世代 MPP 資料倉儲解決方案 徐園程 Sr. Technical Account Manager Thomas.Hsu@Microsoft.com 微軟資料倉儲的願景 未來趨勢 Appliance PDW AU3 新功能 Hub & Spoke 架構運用 PDW & Big Data 大綱 客戶案例分享 與其他 MPP 比較 100%

More information

Market Access To Taiwan. By Jane Peng TÜV Rheinland Taiwan Ltd.

Market Access To Taiwan. By Jane Peng TÜV Rheinland Taiwan Ltd. Market Access To Taiwan By Jane Peng TÜV Rheinland Taiwan Ltd. Content General Introduction Taiwan BSMI mark Products, Scope and approval scheme News Update TÜV Rheinland s One-Stop Services Contact info.

More information

The Sinica Sense Management System: Design and Implementation

The Sinica Sense Management System: Design and Implementation Computational Linguistics and Chinese Language Processing Vol. 10, No. 4, December 2005, pp. 417-430 417 The Association for Computational Linguistics and Chinese Language Processing The Sinica Sense Management

More information

Ringing Ten 2016.01.30 寶 安 商 會 王 少 清 中 學 定 期 通 訊 / 通 告,2002 年 創 刊, 逢 每 月 10 20 及 30 日 派 發

Ringing Ten 2016.01.30 寶 安 商 會 王 少 清 中 學 定 期 通 訊 / 通 告,2002 年 創 刊, 逢 每 月 10 20 及 30 日 派 發 Principal s Message: Let s Sing the Song of Mirth to Celebrate the Charter of POCA Wong Siu Ching Secondary School Interact Club! 25th January, 2016 is the date of establishment of POCA Wong Siu Ching

More information

歐 洲 難 民 潮 對 經 濟 的 影 響 The Economic Implications of Europe s Refugee Influx

歐 洲 難 民 潮 對 經 濟 的 影 響 The Economic Implications of Europe s Refugee Influx 歐 洲 難 民 潮 對 經 濟 的 影 響 The Economic Implications of Europe s Refugee Influx 沈 旭 暉 副 教 授 香 港 中 文 大 學 國 際 事 務 研 究 中 心 聯 席 主 任 Dr Simon Shen Co-Director International Affairs Research Center Hong Kong Institute

More information

EW-7438RPn Mini 安 裝 指 南. 07-2014 / v1.0

EW-7438RPn Mini 安 裝 指 南. 07-2014 / v1.0 EW-7438RPn Mini 安 裝 指 南 07-2014 / v1.0 I. 產 品 資 訊 I-1. 包 裝 內 容 - EW-7438RPn Mini - CD 光 碟 ( 快 速 安 裝 指 南 及 使 用 者 手 冊 ) - 快 速 安 裝 指 南 - 連 線 密 碼 卡 I-2. 系 統 需 求 - 無 線 訊 號 延 伸 / 無 線 橋 接 模 式 : 使 用 現 有 2.4GHz

More information

weekly Our mission Our history Our footprint Our award-winning content 2015 Media Kit asian northwest

weekly Our mission Our history Our footprint Our award-winning content 2015 Media Kit asian northwest 2015 Media Kit asian Our mission Asian Pacific American communities have been called, The market of the 21st century. The Northwest Asian Weekly (NWAW) and our sister paper, The Seattle Chinese Post (SCP),

More information

余 雋 禧 仇 慧 琳 宣 教 士 夫 婦

余 雋 禧 仇 慧 琳 宣 教 士 夫 婦 余 雋 禧 仇 慧 琳 宣 教 士 夫 婦 Email & Skype: missionarykenny@gmail.com 二 零 一 五 年 十 二 月 家 書 親 愛 的 主 內 弟 兄 姐 妹 和 朋 友, 分 享 家 事 自 從 兒 子 於 七 月 出 生 後, 我 們 的 生 活 簡 直 是 翻 了 個 天, 每 天 忙 著 餵 奶 換 尿 布, 哄 睡 覺, 但 相 信 這 也 是 每

More information

Customers' Trust and Purchase Intention towards. Taobao's Alipay (China online marketplace)

Customers' Trust and Purchase Intention towards. Taobao's Alipay (China online marketplace) Customers' Trust and Purchase Intention towards Taobao's Alipay (China online marketplace) By Wong Tak Yan, Isabella 08032084 & Yeung Yuen Ha, Rabeea 08037728 An Honours Degree Project Submitted to the

More information

4.8 Thedo while Repetition Statement Thedo while repetition statement

4.8 Thedo while Repetition Statement Thedo while repetition statement 1 4.8 hedo while Repetition Statement hedo while repetition statement Similar to thewhile structure Condition for repetition tested after the body of the loop is performed All actions are performed at

More information

亞 洲 地 區 積 極 搶 客 : 澳 門 日 本 韓 國 紛 紛 推 出 割 價 優 惠 及 免 稅 等 搶 客, 香 港 暫 未 有 相 關 措 施

亞 洲 地 區 積 極 搶 客 : 澳 門 日 本 韓 國 紛 紛 推 出 割 價 優 惠 及 免 稅 等 搶 客, 香 港 暫 未 有 相 關 措 施 331 期 參 考 答 案 時 事 一 1. 香 港 旅 遊 業 面 臨 的 挑 戰 如 : 亞 洲 地 區 積 極 搶 客 : 澳 門 日 本 韓 國 紛 紛 推 出 割 價 優 惠 及 免 稅 等 搶 客, 香 港 暫 未 有 相 關 措 施 各 行 各 業 調 整 失 色 : 香 港 的 零 售 氣 氛 轉 弱, 調 整 期 恐 剛 剛 開 始, 不 少 商 店 及 小 店 結 業 屢 見 不

More information

代 號 (//) ISIN Code Price Price CHIPOW CHINA POWER INTL DEVELOP 4.5 5/9/2017 HK0000198041 100.55 100.80 3.72 3.38 Electric Moderate CHELCP CN ELECTRONI

代 號 (//) ISIN Code Price Price CHIPOW CHINA POWER INTL DEVELOP 4.5 5/9/2017 HK0000198041 100.55 100.80 3.72 3.38 Electric Moderate CHELCP CN ELECTRONI 中 銀 國 際 提 供 一 系 列 由 不 同 國 家 政 府 機 構 金 融 機 構 或 大 型 企 業 發 行 的 債 券, 涵 蓋 不 同 年 期 息 率 及 結 算 貨 幣 供 客 戶 選 擇 以 下 債 券 報 價 僅 提 供 基 本 的 市 場 參 考 價 格 作 參 考 用 途 如 欲 查 詢 最 新 市 場 價 格 或 索 取 更 多 有 關 債 券 的 資 料, 請 聯 絡 您 的

More information

Waste management to improve food safety and security for health advancement

Waste management to improve food safety and security for health advancement 538 Asia Pac J Clin Nutr 2009;18 (4):538-545 Review Waste management to improve food safety and security for health advancement Angela Yu-Chen Lin PhD 1, Susana Tzy-Ying Huang HonBSc 2, Mark L Wahlqvist

More information

Wi-Fi SD. Sky Share S10 User Manual

Wi-Fi SD. Sky Share S10 User Manual Wi-Fi SD Sky Share S10 User Manual Table of Contents 1. Introduction... 3 2. Spec and System Requirements... 4 3. Start Sky Share S10... 5 4. iphone App... 7 5. ipad App... 13 6. Android App... 15 7. Web

More information

How To Be The Legend In Hong Kong

How To Be The Legend In Hong Kong 5th 與 東 亞 運 共 創 傳 奇 一 刻 Hong Kong shows East Asia it can Be the Legend History was made from 5 to 13 December 2009 when Hong Kong successfully hosted its first-ever international multi-sports event, the

More information

Macrohabitat Characteristics and Distribution Hotspots of Endemic Bird Species in Taiwan

Macrohabitat Characteristics and Distribution Hotspots of Endemic Bird Species in Taiwan Taiwania, 55(3): 216-227, 2010 Macrohabitat Characteristics and Distribution Hotspots of Endemic Bird Species in Taiwan Chia-Ying Ko (1*), Ruey-Shing Lin (2) and Pei-Fen Lee (1) 1. Institute of Ecology

More information

Procedures to file a request to the JPO for Patent Prosecution Highway Pilot Program between the JPO and the HPO

Procedures to file a request to the JPO for Patent Prosecution Highway Pilot Program between the JPO and the HPO Procedures to file a request to the JPO for Patent Prosecution Highway Pilot Program between the JPO and the HPO 1. to the JPO When an applicant files a request for an accelerated examination under the

More information

HiTi user manual. HiTi Digital, Inc. www.hiti.com

HiTi user manual. HiTi Digital, Inc. www.hiti.com HiTi user manual HiTi Digital, Inc. www.hiti.com English CONTENTS PREFACE Announcements Chapter 1. Getting ready 1.1 Checking box contents 1.2 Appearance of the printer and key functions 1.3 Installation

More information

Multilingual Version. English. 中 文 Français 日 本 語. Deutsch. Español. Italiano

Multilingual Version. English. 中 文 Français 日 本 語. Deutsch. Español. Italiano Multilingual Version English 中 文 Français 日 本 語 Deutsch Español Italiano AVN801 / 701 NETWORK CAMERA SERIES OPERATION GUIDE Please read instructions thoroughly before operation and retain it for future

More information

痴 呆 症. Dementia 如 何 照 顧 患 有 痴 呆 症 的 家 人. How To Care For A Family Member With Dementia

痴 呆 症. Dementia 如 何 照 顧 患 有 痴 呆 症 的 家 人. How To Care For A Family Member With Dementia 痴 呆 症 如 何 照 顧 患 有 痴 呆 症 的 家 人 Dementia How To Care For A Family Member With Dementia How To Care For A Family Member With Dementia Caring for a family member with dementia can be a challenge. Dementia

More information

广 东 培 正 学 院 2016 年 本 科 插 班 生 专 业 课 考 试 大 纲 基 础 英 语 课 程 考 试 大 纲

广 东 培 正 学 院 2016 年 本 科 插 班 生 专 业 课 考 试 大 纲 基 础 英 语 课 程 考 试 大 纲 广 东 培 正 学 院 2016 年 本 科 插 班 生 专 业 课 考 试 大 纲 基 础 英 语 课 程 考 试 大 纲 Ⅰ. 考 试 性 质 普 通 高 等 学 校 本 科 插 班 生 招 生 考 试 是 由 专 科 毕 业 生 参 加 的 选 拔 性 考 试 高 等 学 校 根 据 考 生 的 成 绩, 按 已 确 定 的 招 生 计 划, 德 智 体 全 面 衡 量, 择 优 录 取 该

More information

Should lidocaine spray be used to ease nasogastric tube insertion? A double-blind, randomised controlled trial

Should lidocaine spray be used to ease nasogastric tube insertion? A double-blind, randomised controlled trial O R I G I N A L A R T I C L E Should lidocaine spray be used to ease nasogastric tube insertion? A double-blind, randomised controlled trial CP Chan FL Lau 陳 志 鵬 劉 飛 龍 Objective To investigate the efficacy

More information

An Improved Method for the Binarization in Structured Light 3D Scanning Systems

An Improved Method for the Binarization in Structured Light 3D Scanning Systems An Improved Method for the Binarization in Structured Liht 3D Scannin Systems An Improved Method for the Binarization in Structured Liht 3D Scannin Systems Chih-Hun Huan 1 1 Department of Information Manaement

More information

10th PRO Awards Grace a Plaque of Recognition for Excellence

10th PRO Awards Grace a Plaque of Recognition for Excellence 今日靈惠 GraceToday The Official Publication of Grace Christian College Grace Village, Quezon City, Philippines Vol. XX Issue I November 2011 10th PRO Awards Grace a Plaque of Recognition for Excellence GCC

More information

維 多 利 亞 小 說 中 的 性 別 意 識 與 女 性 形 象 : 以 夏 綠 蒂 勃 朗 黛 及 喬 治 艾 略 特 的 小 說 為 例 溫 璧 錞 應 用 英 語 系

維 多 利 亞 小 說 中 的 性 別 意 識 與 女 性 形 象 : 以 夏 綠 蒂 勃 朗 黛 及 喬 治 艾 略 特 的 小 說 為 例 溫 璧 錞 應 用 英 語 系 : 以 夏 綠 蒂 勃 朗 黛 及 喬 治 艾 略 特 的 小 說 為 例 摘 要 溫 璧 錞 應 用 英 語 系 1837 年 至 1901 年, 是 英 國 史 上 的 維 多 利 亞 時 代 ; 此 階 段 英 國 文 壇 人 才 備 出, 其 中 不 乏 出 色 的 女 性 小 說 家, 喬 治 艾 略 特 (George Eliot) 與 夏 綠 蒂 勃 朗 黛 (Charlotte Bronte)

More information

Meaning, function, and grammaticalization: The case of zaishuo. 李 懿 倫 Vincent Yi-lun Li 國 立 台 灣 師 範 大 學 英 語 研 究 所 語 言 組 ( 碩 士 班 )

Meaning, function, and grammaticalization: The case of zaishuo. 李 懿 倫 Vincent Yi-lun Li 國 立 台 灣 師 範 大 學 英 語 研 究 所 語 言 組 ( 碩 士 班 ) Meaning, function, and grammaticalization: The case of zaishuo 李 懿 倫 Vincent Yi-lun Li 國 立 台 灣 師 範 大 學 英 語 研 究 所 語 言 組 ( 碩 士 班 ) Abstract This paper proposes that Mandarin Chinese zaishuo( 再 說 ) can be

More information

A Brief Study on Cancellation of Late-Marriage and Late-Childbirth Leaves

A Brief Study on Cancellation of Late-Marriage and Late-Childbirth Leaves PRC Labor and Employment Law Newsflash February 2016 A Brief Study on Cancellation of Late-Marriage and Late-Childbirth Leaves On 27 th December 2015 an amendment to the PRC Population and Family Planning

More information

TS-3GA-32.341(Rel10)v10.0.0 Telecommunication management; File Transfer (FT) Integration Reference Point (IRP); Requirements

TS-3GA-32.341(Rel10)v10.0.0 Telecommunication management; File Transfer (FT) Integration Reference Point (IRP); Requirements TS-3GA-32.341(Rel10)v10.0.0 Telecommunication management; File Transfer (FT) Integration Reference Point (IRP); Requirements 2011 年 6 月 22 日 制 定 一 般 社 団 法 人 情 報 通 信 技 術 委 員 会 THE TELECOMMUNICATION TECHNOLOGY

More information

Bird still caged? China s courts under reform. Workshop, June 3-4, 2016, Vienna, Austria. (University of Vienna, Department of East Asian Studies)

Bird still caged? China s courts under reform. Workshop, June 3-4, 2016, Vienna, Austria. (University of Vienna, Department of East Asian Studies) Bird still caged? China s courts under reform Workshop, June 3-4, 2016, Vienna, Austria (University of Vienna, Department of East Asian Studies) At this workshop, expert participants will exchange information

More information

Chapter 9. Subprograms

Chapter 9. Subprograms Chapter 9 Subprograms ISBN 0-321-33025-0 Chapter 9 Topics Introduction Fundamentals of Subprograms Design Issues for Subprograms Local Referencing Environments Parameter-Passing Methods Parameters That

More information

Bodhisattva Path is an inevitable way to

Bodhisattva Path is an inevitable way to 二 O O 九 年 在 家 菩 薩 戒 誌 Report on the Bodhisattva Precept Transmission in 2009 Compiled by Editorial Staff 在 通 往 佛 國 的 路 上 比 丘 尼 恒 雲 文 沙 彌 尼 近 經 英 譯 通 往 佛 國 的 路 上, 菩 薩 道 是 一 在 條 必 經 之 路 諸 多 眾 生 在 這 路 上 來

More information

國 立 中 山 大 學 企 業 管 理 學 系 碩 士 論 文

國 立 中 山 大 學 企 業 管 理 學 系 碩 士 論 文 國 立 中 山 大 學 企 業 管 理 學 系 碩 士 論 文 Department of Business Management National Sun Yat-sen University Master Thesis 尋 求 網 路 廣 告 績 效 最 佳 化 機 制 Optimizing Performance of Internet Advertising Campaigns 研 究 生

More information

ZACHYS tel +852.2530.1971 / +1.914.448.3026 fax +852.3014.3838 / +1.914.313.2350 auction@zachys.com zachys.com

ZACHYS tel +852.2530.1971 / +1.914.448.3026 fax +852.3014.3838 / +1.914.313.2350 auction@zachys.com zachys.com Karuizawa 1984 - #7802 into neck, distilled by Karuizawa Distillery on 29th November 1984 and bottled on 13th October 2014, aged 29 years, Spanish oak Olorosso sherry cask, sherry butt, cask #7802, bottle

More information

Effect of omega 3 and omega 6 fatty acid intakes from diet and supplements on plasma fatty acid levels in the first 3 years of life

Effect of omega 3 and omega 6 fatty acid intakes from diet and supplements on plasma fatty acid levels in the first 3 years of life 552 Asia Pac J Clin Nutr 2008;17 (4):552-557 Original Article Effect of omega 3 and omega 6 fatty acid intakes from diet and supplements on plasma fatty acid levels in the first 3 years of life Camilla

More information

JPShiKen.COM 全 日 本 最 新 の IT 認 定 試 験 問 題 集

JPShiKen.COM 全 日 本 最 新 の IT 認 定 試 験 問 題 集 JPShiKen.COM 全 日 本 最 新 の IT 認 定 試 験 問 題 集 最 新 の IT 認 定 試 験 資 料 のプロバイダ 参 考 書 評 判 研 究 更 新 試 験 高 品 質 学 習 質 問 と 回 答 番 号 教 科 書 難 易 度 体 験 講 座 初 心 者 種 類 教 本 ふりーく 方 法 割 引 復 習 日 記 合 格 点 学 校 教 材 ス クール 認 定 書 籍 攻

More information

1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++

1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++ Answer the following 1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++ 2) Which data structure is needed to convert infix notations to postfix notations? Stack 3) The

More information

REGULATIONS FOR THE DEGREE OF BACHELOR OF ARTS IN ARCHITECTURAL STUDIES (BA[ArchStud])

REGULATIONS FOR THE DEGREE OF BACHELOR OF ARTS IN ARCHITECTURAL STUDIES (BA[ArchStud]) REGULATIONS FOR THE DEGREE OF BACHELOR OF ARTS IN ARCHITECTURAL STUDIES (BA[ArchStud]) These regulations and syllabuses apply to students admitted in the 2011-12 academic year and thereafter. (See also

More information

Quality of. Leadership. Quality Students of Faculty. Infrastructure

Quality of. Leadership. Quality Students of Faculty. Infrastructure 217 218 Quality of Quality of Leadership Quality of Quality of Quality Students of Faculty Quality of Infrastructure 219 220 Quantitative Factor Quantitative Analysis Meta Synthesis Informal Interviews

More information

新 媒 體 傳 播 策 略 應 用 學 習 課 程 2015-2017

新 媒 體 傳 播 策 略 應 用 學 習 課 程 2015-2017 新 媒 體 傳 播 策 略 應 用 學 習 課 程 2015-2017 1 新 媒 體 傳 播 策 略 本 課 程 旨 在 讓 學 生 掌 握 新 媒 體 傳 播 策 略 的 知 識, 如 互 動 媒 體 社 交 媒 體 視 頻 剪 輯 和 移 動 應 用 程 式 透 過 設 計 規 劃 和 執 行 過 程 中, 學 生 學 習 使 用 精 練 信 息 來 溝 通 課 程 內 容 亦 函 蓋 整 合

More information

Validity and reliability of the Chinese version of the Insulin Treatment Appraisal Scale among primary care patients in Hong Kong

Validity and reliability of the Chinese version of the Insulin Treatment Appraisal Scale among primary care patients in Hong Kong Original Article Validity and reliability of the Chinese version of the Insulin Treatment Appraisal Scale among primary care patients in Hong Kong KP Lee * This article was published on 3 Jun 2016 at www.hkmj.org.

More information

Terms and Conditions of Purchase- Bosch China [ 采 购 通 则 博 世 ( 中 国 )]

Terms and Conditions of Purchase- Bosch China [ 采 购 通 则 博 世 ( 中 国 )] 1. General 总 则 Our Terms and Conditions of Purchase shall apply exclusively; Business terms and conditions of the Supplier conflicting with or Supplier s deviating from our Terms and Conditions of Purchase

More information

Multilingual Version. English 中 文. Français 日 本 語. Deutsch. Italiano

Multilingual Version. English 中 文. Français 日 本 語. Deutsch. Italiano Multilingual Version English 中 文 Français 日 本 語 Deutsch Italiano AVN801 / 701 NETWORK CAMERA SERIES OPERATION GUIDE Please read instructions thoroughly before operation and retain it for future reference.

More information

A SERVER-LESS ARCHITECTURE FOR BUILDING SCALABLE, RELIABLE, AND COST-EFFECTIVE VIDEO-ON-DEMAND SYSTEMS

A SERVER-LESS ARCHITECTURE FOR BUILDING SCALABLE, RELIABLE, AND COST-EFFECTIVE VIDEO-ON-DEMAND SYSTEMS A SERVER-LESS ARCHITECTURE FOR BUILDING SCALABLE, RELIABLE, AND COST-EFFECTIVE VIDEO-ON-DEMAND SYSTEMS LEUNG WAI TAK A Thesis Submitted in Partial Fulfillment of the Requirements for the Degree of Master

More information

Graduate School of Engineering. Master s Program, 2016 (October entrance)

Graduate School of Engineering. Master s Program, 2016 (October entrance) Application Procedure for Foreign Student Admission to Graduate School of Engineering Master s Program, 2016 (October entrance) Tottori University 4-101 Koyama-Minami, Tottori, 680-8552 Japan Phone: +81-857-31-6761

More information

Lecture 11 Doubly Linked Lists & Array of Linked Lists. Doubly Linked Lists

Lecture 11 Doubly Linked Lists & Array of Linked Lists. Doubly Linked Lists Lecture 11 Doubly Linked Lists & Array of Linked Lists In this lecture Doubly linked lists Array of Linked Lists Creating an Array of Linked Lists Representing a Sparse Matrix Defining a Node for a Sparse

More information

ifuzhen.com, ifortzone.com a product of Edgework Ventures Financial Management Software & Financial Wiki

ifuzhen.com, ifortzone.com a product of Edgework Ventures Financial Management Software & Financial Wiki ifuzhen.com, ifortzone.com a product of Edgework Ventures Edgework Ventures Limited Flat L 19th Floor, Goldfield Building 144-150 Tai Lin Pai Road Kwai Chung, Hong Kong Edgework Technology, Shanghai 中国

More information

Application Guidelines for International Graduate Programs in Engineering

Application Guidelines for International Graduate Programs in Engineering Global 30: Future Global Leadership (FGL) 2016 Academic Year (April 2016 Enrollment) Application Guidelines for International Graduate Programs in Engineering International Mechanical and Aerospace Engineering

More information

英 語 上 級 者 への 道 ~Listen and Speak 第 4 回 ヨーロッパからの 新 しい 考 え. Script

英 語 上 級 者 への 道 ~Listen and Speak 第 4 回 ヨーロッパからの 新 しい 考 え. Script 英 語 上 級 者 への 道 ~Listen and Speak 第 4 回 ヨーロッパからの 新 しい 考 え Script Dialogue for Introduction E: Hello, listeners. Another New Year is upon us! As always, people around the world are hopeful for positive change.

More information

美 国 律 师 协 会 知 识 产 权 法 部 和 国 际 法 律 部 关 于 中 华 人 民 共 和 国 专 利 法 修 改 草 案 ( 征 求 意 见 稿 ) 的 联 合 意 见 书

美 国 律 师 协 会 知 识 产 权 法 部 和 国 际 法 律 部 关 于 中 华 人 民 共 和 国 专 利 法 修 改 草 案 ( 征 求 意 见 稿 ) 的 联 合 意 见 书 美 国 律 师 协 会 知 识 产 权 法 部 和 国 际 法 律 部 关 于 中 华 人 民 共 和 国 专 利 法 修 改 草 案 ( 征 求 意 见 稿 ) 的 联 合 意 见 书 2012 年 9 月 7 日 本 文 所 述 意 见 仅 代 表 美 国 律 师 协 会 (ABA) 知 识 产 权 法 部 和 国 际 法 律 部 的 意 见 文 中 的 评 论 内 容 未 经 美 国 律 师

More information

~1: 15 /;' J~~~~c...:;.--:.. I. ~ffi ~I J) ':~

~1: 15 /;' J~~~~c...:;.--:.. I. ~ffi ~I J) ':~ ~1: 15 /;' J~~~~c...:;.--:.. I ~ffi ~I J) ':~ _ Making CET Writing Sub-test Communicative A Thesis Presented to The College ofenglish Language and Literature Shanghai International Studies University In

More information

EA-N66. 3-in-1 Dual-Band Wireless-N900 Gigabit Access Point / Wi-Fi Bridge / Range Extender. Step-by-Step Setup Manual

EA-N66. 3-in-1 Dual-Band Wireless-N900 Gigabit Access Point / Wi-Fi Bridge / Range Extender. Step-by-Step Setup Manual EA-N66 3-in-1 Dual-Band Wireless-N900 Gigabit Access Point / Wi-Fi Bridge / Range Extender Step-by-Step Setup Manual E7648 First Edition August 2012 Copyright 2012 ASUSTeK Computer Inc. All Rights Reserved.

More information

D R 數 據 研 究. merely mimicking the sciences use of (big) data, the arts and humanities must explore what kind. asdf

D R 數 據 研 究. merely mimicking the sciences use of (big) data, the arts and humanities must explore what kind. asdf D R at ES a e fi a r e c d h Browse this way Table of Contents DATAFYING THE GAZE, OR THE BUBBLE GLAZ 三 03 Emails from an American Psycho 三 03 CAPTURE ALL YOUR THOUGHTS 十 二 12 Interface Industry - Cultural

More information

JAPAN PATENT OFFICE AS DESIGNATED (OR ELECTED) OFFICE CONTENTS

JAPAN PATENT OFFICE AS DESIGNATED (OR ELECTED) OFFICE CONTENTS Page 1 JP JAPAN PATENT OFFICE AS DESIGNATED (OR ELECTED) OFFICE CONTENTS THE ENTRY INTO THE NATIONAL PHASE SUMMARY THE PROCEDURE IN THE NATIONAL PHASE ANNEXES Fees... Annex JP.I Form No. 53: Transmittal

More information

电 信 与 互 联 网 法 律 热 点 问 题

电 信 与 互 联 网 法 律 热 点 问 题 2014 年 5 月 26 日 2014 年 8 月 14 日 电 信 与 互 联 网 法 律 热 点 问 题 即 时 通 信 工 具 公 众 信 息 服 务 发 展 管 理 暂 行 规 定 简 评 2014 年 8 月 7 日, 国 家 互 联 网 信 息 办 公 室 发 布 了 即 时 通 信 工 具 公 众 信 息 服 务 发 展 管 理 暂 行 规 定 ( 以 下 简 称 暂 行 规 定 ),

More information

世 界 のデブリ 関 連 規 制 の 動 向 Current situation of the international space debris mitigation standards

世 界 のデブリ 関 連 規 制 の 動 向 Current situation of the international space debris mitigation standards 第 6 回 スペースデブリワークショップ 講 演 資 料 集 93 B1 世 界 のデブリ 関 連 規 制 の 動 向 Current situation of the international space debris mitigation standards 加 藤 明 ( 宇 宙 航 空 研 究 開 発 機 構 ) Akira Kato (JAXA) スペースデブリの 発 生 の 防 止 と

More information

Spectrum: Studies in Language, Literature, Translation, and Interpretation, Vol. 2, 85-92

Spectrum: Studies in Language, Literature, Translation, and Interpretation, Vol. 2, 85-92 Spectrum: Studies in Language, Literature, Translation, and Interpretation, Vol. 2, 85-92 Tales of Good-hearted Women: A Comparison of Gustave Flaubert's Un Coeur simple and Gertrude Stein's The Good Anna

More information

Course Material English in 30 Seconds (Nan un-do)

Course Material English in 30 Seconds (Nan un-do) English 4A Spring 2011 Sumiyo Nishiguchi Syllabus Course Title English 4A Instructor Sumiyo Nishiguchi Class Location B101 Time Monday 1pm-2:30pm Email nishiguchi@rs.tus.ac.jp Course Website https://letus.ed.tus.ac.jp/course/

More information

Quarter III, 2015. Ivan Pavlov. why B. F. Skinner kept his portrait on the wall

Quarter III, 2015. Ivan Pavlov. why B. F. Skinner kept his portrait on the wall Quarter III, 2015 OPERANTS THE B. F. SKINNER FOUNDATION REPORT Ivan Pavlov why B. F. Skinner kept his portrait on the wall from the president It is said that when you solve one problem in science, a dozen

More information

Quarter III, 2015. Ivan Pavlov. why B. F. Skinner kept his portrait on the wall

Quarter III, 2015. Ivan Pavlov. why B. F. Skinner kept his portrait on the wall Quarter III, 2015 OPERANTS THE B. F. SKINNER FOUNDATION REPORT Ivan Pavlov why B. F. Skinner kept his portrait on the wall from the president It is said that when you solve one problem in science, a dozen

More information

中 国 石 化 上 海 石 油 化 工 研 究 院 欢 迎 国 内 外 高 层 次 人 才 加 入

中 国 石 化 上 海 石 油 化 工 研 究 院 欢 迎 国 内 外 高 层 次 人 才 加 入 中 国 石 化 上 海 石 油 化 工 研 究 院 欢 迎 国 内 外 高 层 次 人 才 加 入 创 建 世 界 一 流 研 究 院 是 中 国 石 油 化 工 股 份 有 限 公 司 上 海 石 油 化 工 研 究 院 ( 以 下 简 称 上 海 院 ) 的 远 景 目 标, 满 足 国 家 石 油 石 化 发 展 需 求, 为 石 油 石 化 提 供 技 术 支 撑 将 是 上 海 院 的 使

More information

RT-AC68R. Quick Start Guide. Wireless-AC1900 Dual Band Gigabit Router. NOTE: For more details, refer to the user manual included in the support

RT-AC68R. Quick Start Guide. Wireless-AC1900 Dual Band Gigabit Router. NOTE: For more details, refer to the user manual included in the support RT-AC68R Wireless-AC1900 Dual Band Gigabit Router 8R Quick Start Guide NOTE: For more details, refer to the user manual included in the support CD. E8616 / First Edition / August 2013 E8616_RT-AC68R_QSG_new.indd

More information

Master Program in Project Management Yunnan University of Finance & Economics, 2016

Master Program in Project Management Yunnan University of Finance & Economics, 2016 Master Program in Project Management Yunnan University of Finance & Economics, 2016 Part I About the Program Program Objectives Guided by Chinese government s development strategy One Belt, One Road and

More information

1.d 是 故 此 氣 也, 不 可 止 以 力, 而 可 安 以 德. 1 民 : should be read as 此 here. 2 乎 : is an exclamation, like an ah! 3 淖 : should be 綽 chùo, meaning spacious.

1.d 是 故 此 氣 也, 不 可 止 以 力, 而 可 安 以 德. 1 民 : should be read as 此 here. 2 乎 : is an exclamation, like an ah! 3 淖 : should be 綽 chùo, meaning spacious. 管 子 : 內 業 (Warring States, 475-220 BCE) Guanzi, Inner Training/Cultivation 1.a 凡 物 之 精, 此 則 為 生,, 下 生 五 穀, 上 為 列 星 In all cases, the essence of things This is what brings them to life. Below, it makes

More information

FRESH PRODUCE FORUM CHINA, 1 JUNE 2016, CHENGDU, CHINA 新 鲜 果 蔬 行 业 中 国 高 峰 论 坛,2016 年 6 月 1 日, 成 都 EXHIBITOR REGISTRATION FORM 参 展 商 申 请 表 格

FRESH PRODUCE FORUM CHINA, 1 JUNE 2016, CHENGDU, CHINA 新 鲜 果 蔬 行 业 中 国 高 峰 论 坛,2016 年 6 月 1 日, 成 都 EXHIBITOR REGISTRATION FORM 参 展 商 申 请 表 格 FRESH PRODUCE FORUM CHINA, 1 JUNE 2016, CHENGDU, CHINA 新 鲜 果 蔬 行 业 中 国 高 峰 论 坛,2016 年 6 月 1 日, 成 都 EXHIBITOR REGISTRATION FORM 参 展 商 申 请 表 格 1. Exhibitor Data 参 展 商 信 息 (PLEASE COMPLETE IN CAPITAL LETTERS

More information

Analysis of a Search Algorithm

Analysis of a Search Algorithm CSE 326 Lecture 4: Lists and Stacks 1. Agfgd 2. Dgsdsfd 3. Hdffdsf 4. Sdfgsfdg 5. Tefsdgass We will review: Analysis: Searching a sorted array (from last time) List ADT: Insert, Delete, Find, First, Kth,

More information

INFORMATION NOTE. Causes of Poverty in Hong Kong: A Literature Review

INFORMATION NOTE. Causes of Poverty in Hong Kong: A Literature Review INFORMATION NOTE Causes of Poverty in Hong Kong: A Literature Review 1. Overview 1.1 This information note summarizes academic discussions on the factors that lead to the present problem of poverty in

More information

ENERGY SERVICE -> GREEN ECONOMICS

ENERGY SERVICE -> GREEN ECONOMICS ENERGY SERVICE -> GREEN ECONOMICS Speaker: Veronica LIN 林美真 Member of ESCO Association Board 中華民國能源技術服務商業同業公會 理事 GM of Ecolife Taiwan Co., Ltd 綠生活健康節能有限公司 總經理 夏季節電對策的基本想法 Summer time electricity saving

More information

10CS35: Data Structures Using C

10CS35: Data Structures Using C CS35: Data Structures Using C QUESTION BANK REVIEW OF STRUCTURES AND POINTERS, INTRODUCTION TO SPECIAL FEATURES OF C OBJECTIVE: Learn : Usage of structures, unions - a conventional tool for handling a

More information

Data Structure and Algorithm I Midterm Examination 120 points Time: 9:10am-12:10pm (180 minutes), Friday, November 12, 2010

Data Structure and Algorithm I Midterm Examination 120 points Time: 9:10am-12:10pm (180 minutes), Friday, November 12, 2010 Data Structure and Algorithm I Midterm Examination 120 points Time: 9:10am-12:10pm (180 minutes), Friday, November 12, 2010 Problem 1. In each of the following question, please specify if the statement

More information

The Maryknoll Advantage With Pacific Aviation Museum Pearl Harbor

The Maryknoll Advantage With Pacific Aviation Museum Pearl Harbor S U M M E R C A M P 2 0 1 4 The Maryknoll Advantage With Pacific Aviation Museum Pearl Harbor Summer ESL/Pacific Aviation Museum at Maryknoll School, Hawaii July 12 July 31 Program will include: *16 hours

More information

國 立 交 通 大 學 生 物 科 技 研 究 所 碩 士 論 文 探 討 幽 門 螺 旋 桿 菌 熱 休 克 蛋 白 60 對 人 類 周 邊 血 液 單 核 球 抑 制 增 生 活 性 之 位 置

國 立 交 通 大 學 生 物 科 技 研 究 所 碩 士 論 文 探 討 幽 門 螺 旋 桿 菌 熱 休 克 蛋 白 60 對 人 類 周 邊 血 液 單 核 球 抑 制 增 生 活 性 之 位 置 國 立 交 通 大 學 生 物 科 技 研 究 所 碩 士 論 文 探 討 幽 門 螺 旋 桿 菌 熱 休 克 蛋 白 60 對 人 類 周 邊 血 液 單 核 球 抑 制 增 生 活 性 之 位 置 The active site of Helicobacter pylori heat shock protein 60 for inhibiting the proliferation of human

More information

2, The "Leading Initiative for Excellent Young Researchers" application screen (Home)

2, The Leading Initiative for Excellent Young Researchers application screen (Home) 0, Before you apply for Leading Initiative for Excellent Young Researchers, please refer to "Application Guidelines" and "Notes for Researchers on e-rad System and Forms 3 through 6". (Please access the

More information

Stress, Rhythm, Tone And Intonation. Ching Kang Liu National Taipei University ckliu@mail.ntpu.edu.tw http://web.ntpu.edu.

Stress, Rhythm, Tone And Intonation. Ching Kang Liu National Taipei University ckliu@mail.ntpu.edu.tw http://web.ntpu.edu. Stress, Rhythm, Tone And Intonation Ching Kang Liu National Taipei University ckliu@mail.ntpu.edu.tw http://web.ntpu.edu.tw/~ckliu/ 1 Overview Rhythm & intonation 1. Rhythm (suprasegmental stress patterns)

More information

Introduction to Sociolinguistic Research Issues in Hong Kong 25 January 2014

Introduction to Sociolinguistic Research Issues in Hong Kong 25 January 2014 包 睿 舜 LING6023 Introduction to Sociolinguistic Research Issues in Hong Kong 25 January 2014 Robert S. BAUER Dept. of Linguistics University of Hong Kong Email: rsbao@yahoo.com 1 Lecture Topics Methods

More information

Synergy yet to be Seen, Maintain Accumulate

Synergy yet to be Seen, Maintain Accumulate : CRRC Corporation (1766 HK) Gary Wong 黄 家 玮 公 司 报 告 : 中 国 中 车 (1766 HK) +852 259 2616 gary.wong@gtjas.com.hk Synergy yet to be Seen, Maintain Accumulate 协 同 效 应 有 待 观 察, 维 持 收 集 GTJA Research 国 泰 君 安

More information

PES Institute of Technology-BSC QUESTION BANK

PES Institute of Technology-BSC QUESTION BANK PES Institute of Technology-BSC Faculty: Mrs. R.Bharathi CS35: Data Structures Using C QUESTION BANK UNIT I -BASIC CONCEPTS 1. What is an ADT? Briefly explain the categories that classify the functions

More information

5. A full binary tree with n leaves contains [A] n nodes. [B] log n 2 nodes. [C] 2n 1 nodes. [D] n 2 nodes.

5. A full binary tree with n leaves contains [A] n nodes. [B] log n 2 nodes. [C] 2n 1 nodes. [D] n 2 nodes. 1. The advantage of.. is that they solve the problem if sequential storage representation. But disadvantage in that is they are sequential lists. [A] Lists [B] Linked Lists [A] Trees [A] Queues 2. The

More information

California Subject Examinations for Teachers

California Subject Examinations for Teachers California Subject Examinations for Teachers TEST GUIDE JAPANESE SUBTEST I Sample Questions and Responses and Scoring Information Copyright 2015 Pearson Education, Inc. or its affiliate(s). All rights

More information