4.5.6 Exercises for Section 4.5Exercise 4.5.1: Compute the surprise nu dịch - 4.5.6 Exercises for Section 4.5Exercise 4.5.1: Compute the surprise nu Việt làm thế nào để nói

4.5.6 Exercises for Section 4.5Exer

4.5.6 Exercises for Section 4.5
Exercise 4.5.1: Compute the surprise number (second moment) for the stream 3, 1, 4, 1, 3, 4, 2, 1, 2. What is the third moment of this stream?
A General Stream-Sampling Problem
Notice that the technique described in Section 4.5.5 actually solves a more general problem. It gives us a way to maintain a sample of s stream elements so that at all times, all stream elements are equally likely to be selected for the sample. As an example of where this technique can be useful, recall that in Section 4.2 we arranged to select all the tuples of a stream having key value in a randomly selected subset. Suppose that, as time goes on, there are too many tuples associated with any one key. We can arrange to limit the number of tuples for any key K to a fixed constant s by using the technique of Section 4.5.5 whenever a new tuple for key K arrives.
! Exercise 4.5.2: If a stream has n elements, of which m are distinct, what are the minimum and maximum possible surprise number, as a function of m and n?
Exercise 4.5.3: Suppose we are given the stream of Exercise 4.5.1, to which we apply the Alon-Matias-Szegedy Algorithm to estimate the surprise number. For each possible value of i, if Xi is a variable starting position i, what is the value of Xi.value?
Exercise 4.5.4: Repeat Exercise 4.5.3 if the intent of the variables is to com- pute third moments. What is the value of each variable at the end? What estimate of the third moment do you get from each variable? How does the average of these estimates compare with the true value of the third moment?
Exercise 4.5.5: Prove by induction on m that 1+3+5+···+(2m−1) = m2.
Exercise 4.5.6: If we wanted to compute fourth moments, how would we convert X.value to an estimate of the fourth moment?
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
4.5.6 bài tập cho phần 4.5
tập thể dục 4.5.1: tính toán sự ngạc nhiên số (thời điểm thứ hai) cho dòng 3, 1, 4, 1, 3, 4, 2, 1, 2. Thời điểm thứ ba của dòng này là gì?
A chung Stream-mẫu vấn đề
thông báo rằng các kỹ thuật được mô tả trong phần 4.5.5 thực sự giải quyết một vấn đề tổng quát hơn. Nó mang lại cho chúng tôi một cách để duy trì một mẫu s stream yếu tố vì vậy mà tại mọi thời điểm, Tất cả các yếu tố stream được bình đẳng với khả năng để bạn lựa chọn cho mẫu. Như là một ví dụ về nơi kỹ thuật này có thể hữu ích, nhớ lại rằng trong phần phần 4.2, chúng tôi sắp xếp để chọn tất cả các tuples một luồng có giá trị quan trọng trong một tập hợp con lựa chọn ngẫu nhiên. Giả sử rằng, như thời gian đi, không có quá nhiều tuples liên kết với bất kỳ quan trọng. Chúng tôi có thể sắp xếp để giới hạn số lượng tuples đối với bất kỳ phím K cho một fixed hằng số s bằng cách sử dụng các kỹ thuật của phần 4.5.5 bất cứ khi nào một tuple mới cho khóa K đến.
! Tập thể dục 4.5.2: Nếu một dòng có n phần tử, trong đó m là khác biệt, số lượng tối thiểu và tối đa có thể bất ngờ, như một chức năng của m và n là gì?
tập thể dục 4.5.3: giả sử chúng tôi có được dòng tập thể dục 4.5.1, mà chúng tôi áp dụng các thuật toán Alon-Matias-Szegedy để ước tính số bất ngờ. Đối với mỗi giá trị có thể của tôi, nếu Xi là một bắt đầu thay đổi vị trí của tôi, những gì là giá trị của Xi.value?
Exercise 4.5.4: lặp lại tập thể dục 4.5.3 nếu mục đích của các biến là com-pute những khoảnh khắc thứ ba. Giá trị của mỗi biến vào giữa là gì? Ước tính của thời điểm này thứ ba nào bạn nhận được từ mỗi biến? Làm thế nào là ước tính những so sánh với giá trị thực sự của thời điểm thứ ba?
tập thể dục 4.5.5: chứng minh bằng quy nạp trên m đó 5 3 1 ··· (2m−1) = m2.
tập thể dục 4.5.6: nếu chúng tôi muốn tính toán thứ tư khoảnh khắc, làm thế nào chúng tôi chuyển đổi X.value để ước tính này thứ tư?
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
4.5.6 Exercises for Section 4.5
Exercise 4.5.1: Compute the surprise number (second moment) for the stream 3, 1, 4, 1, 3, 4, 2, 1, 2. What is the third moment of this stream?
A General Stream-Sampling Problem
Notice that the technique described in Section 4.5.5 actually solves a more general problem. It gives us a way to maintain a sample of s stream elements so that at all times, all stream elements are equally likely to be selected for the sample. As an example of where this technique can be useful, recall that in Section 4.2 we arranged to select all the tuples of a stream having key value in a randomly selected subset. Suppose that, as time goes on, there are too many tuples associated with any one key. We can arrange to limit the number of tuples for any key K to a fixed constant s by using the technique of Section 4.5.5 whenever a new tuple for key K arrives.
! Exercise 4.5.2: If a stream has n elements, of which m are distinct, what are the minimum and maximum possible surprise number, as a function of m and n?
Exercise 4.5.3: Suppose we are given the stream of Exercise 4.5.1, to which we apply the Alon-Matias-Szegedy Algorithm to estimate the surprise number. For each possible value of i, if Xi is a variable starting position i, what is the value of Xi.value?
Exercise 4.5.4: Repeat Exercise 4.5.3 if the intent of the variables is to com- pute third moments. What is the value of each variable at the end? What estimate of the third moment do you get from each variable? How does the average of these estimates compare with the true value of the third moment?
Exercise 4.5.5: Prove by induction on m that 1+3+5+···+(2m−1) = m2.
Exercise 4.5.6: If we wanted to compute fourth moments, how would we convert X.value to an estimate of the fourth moment?
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: