

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Cheatsheet for algorithm analysis
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!
Soru# Aşağıdaki fonksiyonlar için büyüme derecelerini ( order of growth) (aynı, daha büyük, daha küçük şeklinde) karşılaştırınız ve gerekçesini açıklayınız. a) f(n)= 𝒍𝒐𝒈𝟐𝒏 g(n)= √𝒏. 𝒍𝒐𝒈𝟐 𝒏 b) f(n)=n^3 g(n)=2n Soru# Aşağıdaki ifadelerin doğru ya da yanlış olduğunu ispatlayınız. a) n(n^2 +1)/2 O ( n^3 ) b) (n+1)/2 Ω( n ) Soru# 3 ) Aşağıdaki soruları verilen algoritmaya göre cevaplandırınız : ALGORİTMA Enigma ( A [0.. n-1, 0.. n- 1 ) //Girdi: A [0.. n-1, 0.. n- 1 ] reel sayılardan oluşan bir matris for i 0 to n- 2 do
for j i+1 to n- 1 do if A [ i,j ]A[ j,i ] return false return true