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
Tài liệu HOT
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
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Lecture Formal methods in software engineering - Lecture 28
TAILIEUCHUNG - Lecture Formal methods in software engineering - Lecture 28
Lecture Formal methods in software engineering - Lecture 28 presents the following content: Functions, key search, binary search functions, program construction, constructing conditional statements, output variables, ghost variables, simultaneous assignment statements,. | 1 1 Formal Methods in Software Engineering Lecture # 28 1 1 1 2 2 2 2 2 3 3 Functions Find the index of the minimum value in a function First write pre and post condition and then proof You need to pass the size of the array to function Any Conditions on the input? There is no specific condition to apply on input Pre-condition: True . Any array of integer with any size Post condition: ? 3 3 3 4 4 Functions Function min ( X: in INTEGER_ARRAY) Return INTEGER Pre: True Post: j in X’First X’Last : min (X) = X (j) and i in X’First X’Last: min (x) <= X (i) and X = X’’ 4 4 4 Ada programming syntax J is an index between the first and last index When this function is executed then is there any change in the array Min(x)- value return by the function . It return value which is present in array at some index 5 5 Functions You need to specify that what would happen to the input array ( . Any change after function execution) The returning value will be the small among all but also The return value exists in the given set Question: If any of the specification component missing then ? 5 5 5 6 6 Another example We have an array and we want to find a key and want to determine that key is present or not. If present then return index – If key is not present then message not found Pre-condition ( any condition on input)? No Condition Post condition? Need to answerer some questions (about input and output array: Do we make any changes in array so X = X’’ What about the key ( what is returning): Key found or not found. 6 6 6 7 7 Key search example Pre: True Post: (( found and X (index) = key ) or ( N NOT found and ( j in X’First X’Last : x (j) not equal key )) and ( X = X’’) 7 7 7 Found and theat is present at the index 8 8 Another example Suppose we have a sorting function then array would modified? You have noted that until now, no condition is imposed on input so the pre-condition is true Restriction on input: any case? If I want to apply .
Sơn Tuyền
53
29
pptx
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
Không thể tạo bản xem trước, hãy bấm tải xuống
Tải xuống
TÀI LIỆU LIÊN QUAN
Lecture Object-oriented software engineering - Chapter 1: Software and software engineering
28
112
0
Lecture Introduction to software engineering: Week 1 - Nguyễn Thị Minh Tuyền (tt)
43
150
1
Lecture Software engineering (9/e): Chapter 1 - Sommerville
49
125
0
Software Engineering: Chapter 1 - Introduction
16
107
0
Lecture Software engineering (9/e): Chapter 21 - Sommerville
46
109
0
Lecture Software engineering - Chapter 1: Software and software engineering
24
118
0
Software Engineering: Chapter 7 – Detail Design
37
133
0
Lecture Software requirements engineering - Lecture 28: Requirements engineering in agile methods
31
131
0
Lecture Software requirements engineering - Lecture 29: Requirements engineering in agile methods
38
141
1
Lecture Software requirements engineering - Lecture 30: Methods for requirements engineering
41
114
0
TÀI LIỆU XEM NHIỀU
Một Case Về Hematology (1)
8
461995
55
Giới thiệu :Lập trình mã nguồn mở
14
23408
69
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
11052
534
Câu hỏi và đáp án bài tập tình huống Quản trị học
14
10266
453
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
9595
106
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8490
1144
Tiểu luận: Nội dung tư tưởng Hồ Chí Minh về đạo đức
16
8317
423
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7904
2240
Đề tài: Dự án kinh doanh thời trang quần áo nữ
17
6905
258
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
6423
1557
TỪ KHÓA LIÊN QUAN
Kỹ thuật lập trình
Software engineering
Formal methods in software engineering
Software development methods
Formal languages
Automata theory
Binary search functions
Object oriented software engineering
Practical software development
Object orientation
Software quality
Software engineering projects
Introduction to software engineering
Lecture Introduction to software engineering
Công nghệ phần mềm
Software process
Software engineering ethics
Lecture Software engineering
Professional software development
Software process activities
Software engineering diversity
Introduction Software Engineering
Software products
FAQs about software engineering
Essential attributes of good software
Importance of software engineering
Software processes
Aspect oriented software engineering
The separation of concerns
Software engineering with aspects
Quality concepts
Detail Design
Design Software Engineering
Implementation Software Engineering
Build Software Engineering
Buy Software Engineering
Requirement engineering
Requirement engineering process
Software requirements engineering
Lecture Software requirements engineering
Requirements engineering
Software requirements engineering
Lecture Software requirements engineering
System engineering
Software requirements document
Requirements engineering process tasks
TÀI LIỆU MỚI ĐĂNG
Management and Services Part 1
10
176
0
07-06-2024
Posted prices versus bargaining in markets_7
23
170
0
07-06-2024
GIÁO TRÌNH VI XỬ LÝ 1 - CHƯƠNG 5. LẬP TRÌNH CHO VI ĐIỀU KHIỂN 80C51
23
125
1
07-06-2024
A Practical Guide for Health Researchers - part 7
24
119
1
07-06-2024
báo cáo hóa học:" Journal of the International AIDS Society: an important step forward"
2
98
0
07-06-2024
Hướng dẫn chế độ dinh dưỡng cho người bệnh viêm khớp
5
135
0
07-06-2024
CHƯƠNG 2: RỦI RO THÂM HỤT TÀI KHÓA
28
123
0
07-06-2024
Giáo án điện tử tiểu học môn lịch sử: Cách mạng mùa thu
39
125
0
07-06-2024
Báo cáo " Thực thi một số cam kết quốc tế của Việt Nam về biến đổi khí hậu "
9
126
0
07-06-2024
Báo cáo y học: "The Factors Influencing Depression Endpoints Research (FINDER) study: final results of Italian patients with depressio"
9
102
0
07-06-2024
TÀI LIỆU HOT
Mẫu đơn thông tin ứng viên ngân hàng VIB
8
7904
2240
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
6423
1557
Ebook Chào con ba mẹ đã sẵn sàng
112
3939
1285
Ebook Tuyển tập đề bài và bài văn nghị luận xã hội: Phần 1
62
5541
1153
Ebook Facts and Figures – Basic reading practice: Phần 1 – Đặng Tuấn Anh (Dịch)
249
8490
1144
Giáo trình Văn hóa kinh doanh - PGS.TS. Dương Thị Liễu
561
3589
662
Giáo trình Sinh lí học trẻ em: Phần 1 - TS Lê Thanh Vân
122
3794
571
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
11052
534
Giáo trình Pháp luật đại cương: Phần 1 - NXB ĐH Sư Phạm
274
4233
527
Bài tập nhóm quản lý dự án: Dự án xây dựng quán cafe
35
4247
483
Đã 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.