Mathcenter Forum  

Go Back   Mathcenter Forum > คณิตศาสตร์ทั่วไป > ปัญหาคณิตศาสตร์ทั่วไป
สมัครสมาชิก คู่มือการใช้ รายชื่อสมาชิก ปฏิทิน ข้อความวันนี้

ตั้งหัวข้อใหม่ Reply
 
เครื่องมือของหัวข้อ ค้นหาในหัวข้อนี้
  #1  
Old 31 มีนาคม 2016, 15:59
share share ไม่อยู่ในระบบ
ลมปราณไร้สภาพ
 
วันที่สมัครสมาชิก: 23 เมษายน 2013
ข้อความ: 1,211
share is on a distinguished road
Default Euclidean algorithm

...Euclidean algorithm เรื่องใคร่รู้
ขอเพื่อนโปรด เล่าสู่ พ้นสงสัย
เขาว่ากัน มันแค่ ขั้นเด็กไง
จริงหรือไร เหมาะเรียน เขียนโปรแกรม
ตอบพร้อมอ้างอิงข้อความนี้
  #2  
Old 01 เมษายน 2016, 12:34
share share ไม่อยู่ในระบบ
ลมปราณไร้สภาพ
 
วันที่สมัครสมาชิก: 23 เมษายน 2013
ข้อความ: 1,211
share is on a distinguished road
Default

What Euclid called "common measure" is termed nowadays a common factor or a common divisor.

Euclid VII.2 then offers an algorithm for finding the greatest common divisor (gcd) of two integers.

http://www.cut-the-knot.org/blue/Euclid.shtml

01 เมษายน 2016 12:37 : ข้อความนี้ถูกแก้ไขแล้ว 1 ครั้ง, ครั้งล่าสุดโดยคุณ share
ตอบพร้อมอ้างอิงข้อความนี้
  #3  
Old 01 เมษายน 2016, 19:36
ohmohm ohmohm ไม่อยู่ในระบบ
หัดเดินลมปราณ
 
วันที่สมัครสมาชิก: 14 กันยายน 2013
ข้อความ: 47
ohmohm is on a distinguished road
Default

Python นะครับ
PHP Code:
def gcd(ab):
    while 
b:      
        
abb
    
return 

01 เมษายน 2016 19:36 : ข้อความนี้ถูกแก้ไขแล้ว 1 ครั้ง, ครั้งล่าสุดโดยคุณ ohmohm
ตอบพร้อมอ้างอิงข้อความนี้
  #4  
Old 04 เมษายน 2016, 17:53
share share ไม่อยู่ในระบบ
ลมปราณไร้สภาพ
 
วันที่สมัครสมาชิก: 23 เมษายน 2013
ข้อความ: 1,211
share is on a distinguished road
Default

ขอบคุณ โปรแกรม ที่ให้
โปรดได้ แบ่งปัน อีกหนา
วานเพื่อน ขยายความ แจงมา
ภาษา บ้านบ้าน วานนะเธอ

06 เมษายน 2016 22:07 : ข้อความนี้ถูกแก้ไขแล้ว 1 ครั้ง, ครั้งล่าสุดโดยคุณ share
ตอบพร้อมอ้างอิงข้อความนี้
  #5  
Old 06 เมษายน 2016, 20:54
ohmohm ohmohm ไม่อยู่ในระบบ
หัดเดินลมปราณ
 
วันที่สมัครสมาชิก: 14 กันยายน 2013
ข้อความ: 47
ohmohm is on a distinguished road
Default

คิดหนักเลยครับ ภาษาบ้านๆ
ตอบพร้อมอ้างอิงข้อความนี้
  #6  
Old 06 เมษายน 2016, 22:02
share share ไม่อยู่ในระบบ
ลมปราณไร้สภาพ
 
วันที่สมัครสมาชิก: 23 เมษายน 2013
ข้อความ: 1,211
share is on a distinguished road
Default

เขึยนเล่าแบบลำดับความคิด
หรือ flowchart น่าจะช่วยให้เข้าใจได้ง่าย

เขียนเป็น programming language ไม่ว่า Python PHP C
ผู้ไม่เคยเรียน ก็จะดูไม่เข้าใจครับ

ขอบคุณล่วงหน้าครับ

07 เมษายน 2016 11:35 : ข้อความนี้ถูกแก้ไขแล้ว 3 ครั้ง, ครั้งล่าสุดโดยคุณ share
เหตุผล: สื่อให้ชัดครับ
ตอบพร้อมอ้างอิงข้อความนี้
  #7  
Old 07 เมษายน 2016, 11:29
share share ไม่อยู่ในระบบ
ลมปราณไร้สภาพ
 
วันที่สมัครสมาชิก: 23 เมษายน 2013
ข้อความ: 1,211
share is on a distinguished road
Default

...สื่อสาร (สอบ)ทานง่าย ฉายประโยชน์
บ่โกรธ ผู้มัก ซักถาม
เข้าใจ ไขแจ้ง กระจ่างความ
ไป่ปล่อย รอยหนาม คาใจ


Euclidean algorithm can be used to find the greatest common divisor of a = 1071 and b = 462.

To begin, multiples of 462 are subtracted from 1071 until the remainder is less than 462.
Two such multiples can be subtracted (q0 = 2), leaving a remainder of 147:
1071 = 2 × 462 + 147.

Then multiples of 147 are subtracted from 462 until the remainder is less than 147.
Three multiples can be subtracted (q1 = 3), leaving a remainder of 21:
462 = 3 × 147 + 21.

Then multiples of 21 are subtracted from 147 until the remainder is less than 21.
Seven multiples can be subtracted (q2 = 7), leaving no remainder:
147 = 7 × 21 + 0.

Since the last remainder is zero,
the algorithm ends with 21 as the greatest common divisor of 1071 and 462.

07 เมษายน 2016 11:34 : ข้อความนี้ถูกแก้ไขแล้ว 1 ครั้ง, ครั้งล่าสุดโดยคุณ share
ตอบพร้อมอ้างอิงข้อความนี้
  #8  
Old 08 เมษายน 2016, 13:06
share share ไม่อยู่ในระบบ
ลมปราณไร้สภาพ
 
วันที่สมัครสมาชิก: 23 เมษายน 2013
ข้อความ: 1,211
share is on a distinguished road
Default

คห.เดิม ได้จาก
https://en.wikipedia.org/wiki/Euclidean_algorithm

ดู Description
Procedure

Worked example
ครับ

08 เมษายน 2016 14:28 : ข้อความนี้ถูกแก้ไขแล้ว 3 ครั้ง, ครั้งล่าสุดโดยคุณ share
ตอบพร้อมอ้างอิงข้อความนี้
ตั้งหัวข้อใหม่ Reply


หัวข้อคล้ายคลึงกัน
หัวข้อ ผู้ตั้งหัวข้อ ห้อง คำตอบ ข้อความล่าสุด
ขออนุญาตแนะนำบริการคับ Algorithm Implementation Service rigor ฟรีสไตล์ 0 01 มกราคม 2009 21:25
นำโปรแกรม Dijkstra's shortest path algorithm มาฝากคับ rigor ซอฟต์แวร์คณิตศาสตร์ 3 02 เมษายน 2007 16:50
ปัญหาชิงรางวัลข้อที่ 11: Euclidean Construction warut คณิตศาสตร์อุดมศึกษา 9 19 มกราคม 2006 17:21
algorithm Honey.Math คณิตศาสตร์อุดมศึกษา 0 10 ธันวาคม 2005 11:11
euclidean group คืออะไร? B&B ปัญหาคณิตศาสตร์ทั่วไป 2 03 กรกฎาคม 2005 09:11


กฎการส่งข้อความ
คุณ ไม่สามารถ ตั้งหัวข้อใหม่ได้
คุณ ไม่สามารถ ตอบหัวข้อได้
คุณ ไม่สามารถ แนบไฟล์และเอกสารได้
คุณ ไม่สามารถ แก้ไขข้อความของคุณเองได้

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
ทางลัดสู่ห้อง


เวลาที่แสดงทั้งหมด เป็นเวลาที่ประเทศไทย (GMT +7) ขณะนี้เป็นเวลา 13:34


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Modified by Jetsada Karnpracha