Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Faculty of Computer Science and Engineering Department of Computer Science Part 1
tailieunhanh - Faculty of Computer Science and Engineering Department of Computer Science Part 1
.Faculty of Computer Science and Engineering Department of Computer Science Part 2. Stack Suppose that the following algorithms are implemented: - PushStack (ref s , val n ): push the value n to the stack s - PopStack(ref s , ref x ): remove the top element of the stack s and assign the data of that top element to x - EmptyStack(val s ): check whether the stack s is empty Required Questions Question 3. Imagine we have two empty stacks of integers, s1 and s2. Draw a picture of each stack after the following operations: 1: 2: 3: 4:. | Faculty of Computer Science and Engineering Department of Computer Science DATA STRUCTURES ALGORITHMS Tutorial 1 Questions COMPUTATIONAL COMPLEXITY Required Questions Question 1. Reorder the following efficiencies from the smallest to the largest a. 2n3 n5 b. 2000 c. 4n 1 d. n4 e. n-1 f. nlog2 n b g f d a c e g. 2klogk n k is a predefined constant Question 2. Determine the big-O notation for the following a. 2n6 O nx6 b. 100n 3 7 O n c. 9lc g2 n O iog2 n d. 5110 2logn O nA10 e. n k k is a predefined constant z O n f 100log2 n 5 n 2n O n Question 3. Calculate the run-time efficiency of the following program segment 1 i n-1 2 loop i n 2 1 j 1 2 loop j n 2 1 print i j O nA 2 j j 2 nzv 3 end loop 4 i i - 2 3 end loop Question 4. Calculate the run-time efficiency of the following program segment 3 1 i n 2 loop i n 2 1 j 1 2 loop j n 2 1 print i- j n 4 log2 nA3 2 j j 2 3 end loop_ 4 i i 2 nlog2 n 3 end loop Released on 24 08 2012 20 06 39 1 4 Faculty of Computer Science and Engineering Department of Computer Science Question 5. If the algorithm dolt has an efficiency factor of 2n calculate the run time efficiency of the following program segment 1 i 1 2 loop i n 1 j 1 2 loop j n 1 k 1 2 loop k n 1 dolt . 2 k k 2 3 end loop 4 j j 1 3 end loop 4 i i 1 3 end loop Question 6. nA3 log2 n 40 2A1024 10A-9 Given that the efficiency of an algorithm is 2nlog2 nv if a step in this algorithm takes 1 nanosecond 10-9 how long does it take the algorithm to process an input of size 1024 Question 7. Write a recurrence equation for the running time T n of g n and solve that recurrence. Algorithm g val n integer Pre n must be greater than 0 Return integer value of g corresponding to n 1 if n 1 2 else1 return 1 . Un Un-1 1 1 return g n - 1 1 End g U1 1 O n Released on 24 08 2012 20 06 39 2 4 Faculty of Computer Science and Engineering Department of Computer Science Advanced Questions Question 8. Prove that for any positive functions f and g f n g n and max f n g n are .
Tấn Phát
231
4
pdf
Báo lỗi
Trùng lắp nội dung
Văn hóa đồi trụy
Phản động
Bản quyền
File lỗi
Khác
Upload
Tải xuống
đang nạp các trang xem trước
Bấm vào đây để xem trước nội dung
Tải xuống
TÀI LIỆU LIÊN QUAN
Faculty of Computer Science and Engineering Department of Computer Science - LAB SESSION 3 RECURSION
3
135
0
Faculty of Computer Science and Engineering Department of Computer Science Part 1
4
193
1
Faculty of Computer Science and Engineering Department of Computer Science Part 2
10
108
1
Feaculty of Computer Science and Engineering Department of Computer Scienc Tutorial 3 Questions
4
116
0
Feaculty of Computer Science and Engineering Department of Computer Scienc Tutorial 4 Questions
3
110
0
Lecture Fundamentals of Biochemical engineering
125
61
1
Oregon department of transportation - Digital Signatures for Engineering Documents
10
68
0
REINFORCED ASPHALT OVERLAYS FOR PAVEMENTS - UNIVERSITY OF NOTTINGHAM DEPARTMENT OF CIVIL ENGINEERING
381
70
0
ADVANCED ENGINEERING ENVIRONMENTS Achieving the Vision
58
87
0
Materials Data Book2003 EditionCambridge University Engineering Department
41
64
0
TÀI LIỆU XEM NHIỀU
Một Case Về Hematology (1)
8
461859
55
Giới thiệu :Lập trình mã nguồn mở
14
22608
59
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10882
529
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10055
445
Phân tích và làm rõ ý kiến sau: “Bài thơ Tự tình II vừa nói lên bi kịch duyên phận vừa cho thấy khát vọng sống, khát vọng hạnh phúc của Hồ Xuân Hương”
3
9514
104
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8273
1124
Tiểu luận: Nội dung tư tưởng Hồ Chí Minh về đạo đức
16
8225
423
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7863
2220
Đề tài: Dự án kinh doanh thời trang quần áo nữ
17
6669
253
Vật lý hạt cơ bản (1)
29
5766
85
TỪ KHÓA LIÊN QUAN
Kỹ thuật lập trình
Engineering Department
Computer Scienc
Feaculty of Computer Science
remove the median element
computer architecture
computer engineering
Lecture Fundamentals of Biochemical engineering
Fundamentals of Biochemical engineering
Biochemical engineering
Chemical engineering department
Anaerobic fermentation processes
Sterilization of microbial medium
Oregon department of transportation
Digital Signatures for Engineering Documents
Electronic Vs Digital Signatures
The Problems with Wet Signatures
Signatures and the Law
Oregon State Law
Reinforcement Materials
Pavement Test Facility
road maintenance
Traffic maintenance
TE Highway engineering
Roads and pavements Civil engineering
composite materials
National Aeronautics
Space Administration
Department of Defense
Department of Energy
Science Foundation
Current State of the Art
Technologes
Systems Engineering
robotic
mechanical
anatomy
data and information
Materials Courses
Engineering Tripos
process data
material property
process attribute charts
Standards and Measuring Devices
electrical engineering curriculum
teaching electronics
electrical systems
electronics engineering
electronic lecture
ESP vocabulary
Simulation task
English for Automotive Engineering
Automotive Engineering Technology Department
Learning ESP vocabulary
Technologies
simple way
lectures
data
objective
litting 2
linked list
object
Lab session 2
objecttive
listing 2
exercises
required excercises
develop method
báo cáo khoa học
báo cáo hóa học
công trình nghiên cứu về hóa học
tài liệu về hóa học
cách trình bày báo cáo
Notarisation
Real estate
Transaction of property
ownership and transfer
portfolio property
Tenancy agreements
TÀI LIỆU MỚI ĐĂNG
extremetech Hacking Firefox phần 7
46
187
0
25-04-2024
MySQL Database Usage & Administration PHẦN 9
37
141
0
25-04-2024
Báo cáo tốt nghiệp: Vận hành và bảo dưỡng trong MPLS
92
143
3
25-04-2024
XỬ TRÍ CHẤN THƯƠNG SỌ NÃO KÍN
1
113
1
25-04-2024
GIÁO TRÌNH VI XỬ LÝ 1 - CHƯƠNG 5. LẬP TRÌNH CHO VI ĐIỀU KHIỂN 80C51
23
107
1
25-04-2024
báo cáo hóa học:" Journal of the International AIDS Society: an important step forward"
2
84
0
25-04-2024
Báo cáo khoa học: "Modèle d’évolution des peuplements en futaie jardinée M Bruciamacchie"
10
77
0
25-04-2024
Điều bạn cần làm để giữ chặt tình yêu
5
106
0
25-04-2024
Hướng dẫn chế độ dinh dưỡng cho người bệnh viêm khớp
5
118
0
25-04-2024
Performance and Financial Audits at the Department of Building and Safety_part1
10
92
0
25-04-2024
TÀI LIỆU HOT
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7863
2220
Giáo trình Tư tưởng Hồ Chí Minh - Mạch Quang Thắng (Dành cho bậc ĐH - Không chuyên ngành Lý luận chính trị)
152
5688
1350
Ebook Chào con ba mẹ đã sẵn sàng
112
3764
1231
Ebook Tuyển tập đề bài và bài văn nghị luận xã hội: Phần 1
62
5310
1135
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8273
1124
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3489
642
Tiểu luận: Tư tưởng Hồ Chí Minh về xây dựng nhà nước trong sạch vững mạnh
13
10882
529
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3679
525
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4041
514
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4122
480
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.