ผลต่างระหว่างรุ่นของ "Sgt/lecture2"
Tanee (คุย | มีส่วนร่วม) |
Tanee (คุย | มีส่วนร่วม) |
||
แถว 1: | แถว 1: | ||
+ | {{หัวคำบรรยาย|Spectral graph theory}} | ||
+ | |||
สำหรับเนื้อหาในสัปดาห์นี้ เราเรียนรู้เกี่ยวกับ Rayleigh quotient และคุณสมบัติของ eigen vector, eigen value ลำดับที่ 2 | สำหรับเนื้อหาในสัปดาห์นี้ เราเรียนรู้เกี่ยวกับ Rayleigh quotient และคุณสมบัติของ eigen vector, eigen value ลำดับที่ 2 | ||
แถว 14: | แถว 16: | ||
</math> | </math> | ||
− | และเราจะพิสูจน์ทฤษฎีบทว่า "ให้ <math>M</math> เป็น symmetric matrix ถ้า <math>x</math> เป็น non-zero vector ที่ทำให้ <math>R(M,x)</math> มีค่ามากที่สุด แล้ว <math>x</math> จะเป็น eigen vector ของ <math>M</math> ที่สอดคล้องกับ eigen value ที่มากที่สุด" | + | และเราจะพิสูจน์ทฤษฎีบทว่า |
− | + | {{กล่องทฤษฎีบท|"ให้ <math>M</math> เป็น symmetric matrix ถ้า <math>x</math> เป็น non-zero vector ที่ทำให้ <math>R(M,x)</math> มีค่ามากที่สุด แล้ว <math>x</math> จะเป็น eigen vector ของ <math>M</math> ที่สอดคล้องกับ eigen value ที่มากที่สุด"}} | |
+ | {{เริ่มบทพิสูจน์}} | ||
เราจะพิสูจน์โดยการใช้ [http://en.wikipedia.org/wiki/Spectral_theory Spectral theory] ([[sgt/lecture1|เนื้อหาครั้งที่ 1]]) | เราจะพิสูจน์โดยการใช้ [http://en.wikipedia.org/wiki/Spectral_theory Spectral theory] ([[sgt/lecture1|เนื้อหาครั้งที่ 1]]) | ||
ให้ ''M'' มี dimension ขนาด ''n'' (symmetric) ได้ว่า ''M'' มี eigen value | ให้ ''M'' มี dimension ขนาด ''n'' (symmetric) ได้ว่า ''M'' มี eigen value | ||
แถว 35: | แถว 38: | ||
\end{align} | \end{align} | ||
</math> | </math> | ||
− | จะเห็นได้ว่า Rayleigh quotient มีค่ามากที่สุดเป็น eigen value ที่ใหญ่ที่สุด และ vector ''x'' ที่ทำให้มีค่าดังกล่าวได้แก่ eigen value ของ ''M'' (พิจารณาที่ <math>(*)</math> ) | + | จะเห็นได้ว่า Rayleigh quotient มีค่ามากที่สุดเป็น eigen value ที่ใหญ่ที่สุด และ vector ''x'' ที่ทำให้มีค่าดังกล่าวได้แก่ eigen value ของ ''M'' (พิจารณาที่ <math>(*)</math> ){{จบบทพิสูจน์}} |
==คุณสมบัติของ eigen value กับกราฟ== | ==คุณสมบัติของ eigen value กับกราฟ== | ||
ให้กราฟ ''G'' ขนาด ''n'' nodes และ <math>A_G</math> เป็น adjacency matrix ของ G ถ้าสำหรับ node ที่ i ใดๆ เราแทนดีกรีด้วย <math>deg(v_i)</math> เราจะนิยาม diagonal matrix <math>D_G</math> ดังนี้ | ให้กราฟ ''G'' ขนาด ''n'' nodes และ <math>A_G</math> เป็น adjacency matrix ของ G ถ้าสำหรับ node ที่ i ใดๆ เราแทนดีกรีด้วย <math>deg(v_i)</math> เราจะนิยาม diagonal matrix <math>D_G</math> ดังนี้ | ||
− | <math>D_G = | + | :<math>D_G = |
\begin{pmatrix} | \begin{pmatrix} | ||
deg(v_1) & 0 & \cdots & 0 \\ | deg(v_1) & 0 & \cdots & 0 \\ | ||
แถว 46: | แถว 49: | ||
0 & 0 & \cdots & deg(v_n) | 0 & 0 & \cdots & deg(v_n) | ||
\end{pmatrix}</math> | \end{pmatrix}</math> | ||
+ | และนิยาม laplacian matrix ของ ''G'' ว่า <math>L_G = D_G - A_G</math> ซึ่งหาก ''G'' มีเส้นเชื่อมเพียงหนึ่งเส้น <math>(v_i,v_j)</math> เราจะได้ | ||
+ | :<math>L_G = | ||
+ | \begin{pmatrix} | ||
+ | & \vdots & & \vdots & \\ | ||
+ | \cdots & 1 & \cdots & -1 & \cdots \\ | ||
+ | & \vdots & & \vdots & \\ | ||
+ | \cdots & -1 & \cdots & 1 & \cdots \\ | ||
+ | & \vdots & & \vdots & \\ | ||
+ | \end{pmatrix}</math> | ||
+ | สำหรับ vector <math>x = [x_1,x_2,\cdots,x_n]</math> ใดๆ เราจะคำนวณค่า <math>R(L_G,x)</math> ได้ว่า | ||
+ | <math>R(L_G,x) = \frac{(x_i-x_j)^2}{x^Tx}</math> |
รุ่นแก้ไขเมื่อ 05:58, 26 มกราคม 2558
บันทึกคำบรรยายวิชา Spectral graph theory นี้ เป็นบันทึกที่นิสิตเขียนขึ้น เนื้อหาโดยมากยังไม่ผ่านการตรวจสอบอย่างละเอียด การนำไปใช้ควรระมัดระวัง
สำหรับเนื้อหาในสัปดาห์นี้ เราเรียนรู้เกี่ยวกับ Rayleigh quotient และคุณสมบัติของ eigen vector, eigen value ลำดับที่ 2
Rayleigh quotient
นิยาม Rayleigh quotient สำหรับ vector x และ symmetric matrix M คือ โดยสังเกตว่าถ้า x เป็น eigen vector ของ M ที่สอดคล้องกับ eigen value จะได้ว่า เนื่องจาก
และเราจะพิสูจน์ทฤษฎีบทว่า
"ให้ เป็น symmetric matrix ถ้า เป็น non-zero vector ที่ทำให้ มีค่ามากที่สุด แล้ว จะเป็น eigen vector ของ ที่สอดคล้องกับ eigen value ที่มากที่สุด"
เราจะพิสูจน์โดยการใช้ Spectral theory (เนื้อหาครั้งที่ 1) ให้ M มี dimension ขนาด n (symmetric) ได้ว่า M มี eigen value และ eigen vector ที่สอดคล้องกับ เพื่อความสะดวก เราให้ว่า ||x|| = 1 และ |||| = 1 สำหรับทุก i และเราสามารถเขียน x ในรูป จากนั้นจึงคำนวณหาค่า Rayleigh quotient
จะเห็นได้ว่า Rayleigh quotient มีค่ามากที่สุดเป็น eigen value ที่ใหญ่ที่สุด และ vector x ที่ทำให้มีค่าดังกล่าวได้แก่ eigen value ของ M (พิจารณาที่ )
คุณสมบัติของ eigen value กับกราฟ
ให้กราฟ G ขนาด n nodes และ เป็น adjacency matrix ของ G ถ้าสำหรับ node ที่ i ใดๆ เราแทนดีกรีด้วย เราจะนิยาม diagonal matrix ดังนี้
และนิยาม laplacian matrix ของ G ว่า ซึ่งหาก G มีเส้นเชื่อมเพียงหนึ่งเส้น เราจะได้
สำหรับ vector ใดๆ เราจะคำนวณค่า ได้ว่า