ﺑﻪ ﻧﺎﻡ ﺧﺪﺍ ﺳﺎﺧﺘﻤﺎﻥ ﻫﺎﻱ ﮔﺴﺴﺘﻪ ﺗﻤﺮﻳﻦ ﺳﻮﻡ ،ﻣﻬﻠﺖ ﺗﺤﻮﻳﻞ 23 :ﺁﺑﺎﻥ 89 ﺩﺍﻧﺸﻜﺪﻩ ﻣﻬﻨﺪﺳﻲ ﻛﺎﻣﭙﻴﻮﺗﺮ ﺩﺍﻧﺸﮕﺎﻩ ﺻﻨﻌﺘﻲ ﺷﺮﻳﻒ - 1ﺛﺎﺑﺖ ﻛﻨﻴﺪ .aﺍﮔﺮ 2n − 1ﻋﺪﺩﻱ ﺍﻭﻝ ﺑﺎﺷﺪ ﺁﻧﮕﺎﻩ 𝑛𝑛 ﺍﻭﻝ ﺍﺳﺖ. .bﺍﮔﺮ 2𝑛𝑛 + 1ﺍﻭﻝ ﺑﺎﺷﺪ ﺁﻧﮕﺎﻩ 𝑛𝑛 ﺗﻮﺍﻧﻲ ﺍﺯ 2ﺍﺳﺖ. - 2ﻣﺮﺗﺒﻪ ) (Orderﺍﻟﮕﻮﺭﻳﺘﻢ ﺯﻳﺮ ﺭﺍ ﺑﺪﺳﺖ ﺁﻭﺭﻳﺪ ) .ﺑﻪ ﺻﻮﺭﺕ ( θ )FIND-ORDER(n 1 𝑠𝑠𝑠𝑠𝑠𝑠 = 1 𝑛𝑛 𝑡𝑡𝑡𝑡 2 𝑓𝑓𝑓𝑓𝑓𝑓 𝑖𝑖 = 1 3 𝑑𝑑𝑑𝑑 𝑓𝑓𝑓𝑓𝑓𝑓 𝑗𝑗 = 1 𝑡𝑡𝑡𝑡 𝑖𝑖 2 4 𝑑𝑑𝑑𝑑 𝑖𝑖𝑖𝑖 𝑗𝑗 𝑚𝑚𝑚𝑚𝑚𝑚 𝑖𝑖 = 0 5 𝑗𝑗 𝑡𝑡𝑡𝑡 𝑡𝑡ℎ𝑒𝑒𝑒𝑒 𝑓𝑓𝑓𝑓𝑓𝑓 𝑘𝑘 = 1 6 𝑑𝑑𝑑𝑑 𝑠𝑠𝑠𝑠𝑠𝑠 = 𝑠𝑠𝑠𝑠𝑠𝑠 + 1 9 - 3ﺑﺎﻗﻴﻤﺎﻧﺪﻩ ) 2(11ﺑﺮ 11ﭼﻨﺪ ﺍﺳﺖ؟ - 4ﺛﺎﺑﺖ ﻛﻨﻴﺪ ﺑﺮﺍﻱ ﻫﺮ ﻋﺪﺩ ﻃﺒﻴﻌﻲ nﻋﺪﺩ ﻃﺒﻴﻌﻲ ﻣﺎﻧﻨﺪ aﻭﺟﻮﺩ ﺩﺍﺭﺩ ﺑﻪ ﻃﻮﺭﻱ ﻛﻪ ﻫﻴﭻ ﻛﺪﺍﻡ ﺍﺯ ﺍﻋﺪﺍﺩ ﻧﺒﺎﺷﺪ. - 5ﺛﺎﺑﺖ ﻛﻨﻴﺪ ﺑﻴﻨﻬﺎﻳﺖ ﻋﺪﺩ ﻃﺒﻴﻌﻲ ﻣﺎﻧﻨﺪ nﻭﺟﻮﺩ ﺩﺍﺭﺩ ﺑﻪ ﻃﻮﺭﻱ ﻛﻪ: a+1, a+2, … , a+nﺍﻭﻝ - 6ﺛﺎﺑﺖ ﻛﻨﻴﺪ ﺑﺮﺍﻱ ﻫﺮ 𝑛𝑛 2n ،ﻋﺒﺎﺭﺕ )𝑛𝑛 (𝑛𝑛 + 1)(𝑛𝑛 + 2) … (2ﺭﺍ ﻣﻲ ﺷﻤﺎﺭﺩ. - 7ﻣﺮﺗﺒﻪ ) (Orderﻫﺮ ﻳﻚ ﺍﺯ ﺗﻮﺍﺑﻊ ﺯﻳﺮ ﺭﺍ ﺑﺪﺳﺖ ﺁﻭﺭﻳﺪ: 65|4𝑛𝑛2 + 1 { ) a. Int f ( int n ;If ( n==1 ) return 1 ;Return 2*f( n-1) + 3*n +1 } { ) b. Int f ( int n ;If ( n==1 ) return 1 )Return f( n/2 ) + log (n } - 8ﺍﮔﺮ Aﻭ Bﺩﻭ ﻣﺎﺗﺮﻳﺲ n*nﺑﺎﺷﻨﺪ ،ﻧﺸﺎﻥ ﺩﻫﻴﺪ: (𝐴𝐴 + 𝐵𝐵)𝑡𝑡 = 𝐴𝐴𝑡𝑡 + 𝐵𝐵𝑡𝑡 .a (𝐴𝐴𝐴𝐴)𝑡𝑡 = 𝐵𝐵𝑡𝑡 𝐴𝐴𝑡𝑡 .b ﻣﻮﻓﻖ ﺑﺎﺷﻴﺪ
© Copyright 2025 Paperzz