Download presentation
Presentation is loading. Please wait.
Published by Raymonde Beaudry Modified over 5 years ago
1
Lesson Objectives Aims Understand the following:
The nature of abstraction The need for abstraction The differences between an abstraction and reality You should be able to: Devise an abstract model for a variety of situations
2
Abstraction Another way of representing something That’s it. Shall we move on? Google says this is an abstraction…
3
Abstraction I LOVE abstraction Abstraction is:
“The removal of unnecessary detail, leaving only what is essential remaining” The noun “Abstract” means to summarise – “an abstract” is a general overview of something – and this is just what we want!
4
From the mouth of OCR Abstraction is required to enable complex procedures or events to be modelled. Computer programs cannot account for every single element of an event as this would be extremely complex and time consuming. Consider the causes of earthquakes; there are a variety of reasons and elements that lead to an earthquake. By pulling out the common themes and similarities between each earthquake and plotting these causes a model can be created. As more data becomes available more detail can be added, making the model more accurate.
5
Abstraction is used to:
Filter down a list into it’s most essential form Reduce the number of problems that need solving Focus on the crux of a problem Decide on a basic feature set for a piece of software/algorithm Make the production of an algorithm MUCH EASIER (because we discard the non-essential information)
6
Example Abstract Not abstract Make my dinner
I require a round plate, not square, slightly warm to the touch, but not too hot, fully laden with freshly cooked foods, a variety of tastes and textures, healthy but not too bland, to be served to me within the next hour.
7
But it’s never that simple
But this is only one way of looking at abstraction. In computer science, abstraction is used to/in: Represent real world objects in a way which can be processed Creating algorithms (removing the unnecessary) Modelling Encapsulate (object oriented programming) Layering (OSI model, TCP stack etc) Its so wide ranging that in computing almost anything can be seen as an abstraction of something else
8
And it’s not always about removing detail
Abstraction removes the unnecessary detail from the user’s experience, making it more accessible. In some instances the level of abstraction is reduced, as more detail is added to improve the model. Consider an old computer game where the player can only move up, down, left or right. Current game characters can jump, lean, swing and their individual joints move. In games, physics allows for more realistic modelling of interactions such as water, flight and properties of various materials and natural elements. In these examples more detail is being added to make the experience closer to the reality.
9
Abstraction Examples
10
Task Complete task 1 from the shared area
11
Task 2 Abstraction in programs involves hiding the real process and complex methods behind a simple user interface. Consider a simple currency conversion program; list all the stages of converting the currency from, say, pounds to dollars. You will note that there are several parts to the final program solution; abstraction attempts to hide these from the user to make the conversion of the currency appear a simple and easy process. Which parts or stages could be hidden from the user and why? What could happen if the user saw these other stages? Write the program or pseudo code to change/convert the currency value entered, thinking about which parts are being abstracted and why, and which unnecessary details are being removed from the user’s perspective.
12
June 2016
13
14
Practise paper
15
16
Review/Success Criteria
You should know: The
Department of Computer Engineering Faculty of Engineering, Prince of Songkla University 1 5 – Abstract Data Types.
Software design and development Marcus Hunt. Application and limits of procedural programming Procedural programming is a powerful language, typically.
Chapter 9 High-Level Programming Languages: C++. Chapter Goals Describe the expectations of high level languages Distinguish between functional design.
1 Perception and VR MONT 104S, Fall 2008 Lecture 21 More Graphics for VR.
Designing Classes CS239 – Jan 26, Key points from yesterday’s lab Enumerated types are abstract data types that define a set of values. They.
Computational Thinking
Lesson 3.1 Review: audible tri-tone Write a snap script that… Asks the user to enter 3 numbers corresponding to tone values Checks for valid inputs and.
The Problem A gallant and brave knight must traverse the lands to rescue the princess and claim his rightful place in the kingdom A Knight on a board.
By : Jack Kelenjian. Is a career in computers right for me? To determine if a career in computers is right for someone you need to identify what makes.
Design Communication. Freehand Drawing Definition: The spontaneous representation of ideas on paper without the use of technical aids.
Computational Thinking
AP CSP: Creating Functions & Top-Down Design
A Selection of Best Practices and Design Patterns for Unity
Collision Theory and Logic
Lesson Objectives Aims Key Words
Algorithms and Problem Solving
Programming paradigms
Object Oriented Programming
Concepts of Object Oriented Programming
Learning outcomes 2 Developing Code – Input Output Model
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.
玻璃钢生产厂家玻璃钢牛的雕塑哪里生产盘龙区玻璃钢雕塑加工山东常见商场美陈哪家好玻璃钢游戏形象雕塑天津户外玻璃钢雕塑优势宜宾玻璃钢卡通雕塑价格玻璃钢小型雕塑甘南仿真玻璃钢雕塑多少钱欧式玻璃钢卡通雕塑厂家现货深圳蛋型玻璃钢花盆玻璃钢雕塑里面是什么邯郸商业街玻璃钢雕塑山东步行街玻璃钢雕塑设计蒙城商场美陈布置丽水玻璃钢仿铜雕塑价格商场美陈灯光装置阜阳公园玻璃钢雕塑和田地区人物玻璃钢雕塑南宁人物玻璃钢雕塑山西玻璃钢卡通雕塑松树深圳市龙翔玻璃钢雕塑厂大型的玻璃钢恐龙雕塑玻璃钢喷水动物雕塑制作景德镇玻璃钢雕塑制作厂家真人大小玻璃钢雕塑成本玻璃钢马雕塑艺术小品主题玻璃钢雕塑生产玻璃钢动物牛雕塑哪里有卖的水景玻璃钢雕塑公司上海季节性商场美陈订购香港通过《维护国家安全条例》两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”19岁小伙救下5人后溺亡 多方发声单亲妈妈陷入热恋 14岁儿子报警汪小菲曝离婚始末遭遇山火的松茸之乡雅江山火三名扑火人员牺牲系谣言何赛飞追着代拍打萧美琴窜访捷克 外交部回应卫健委通报少年有偿捐血浆16次猝死手机成瘾是影响睡眠质量重要因素高校汽车撞人致3死16伤 司机系学生315晚会后胖东来又人满为患了小米汽车超级工厂正式揭幕中国拥有亿元资产的家庭达13.3万户周杰伦一审败诉网易男孩8年未见母亲被告知被遗忘许家印被限制高消费饲养员用铁锨驱打大熊猫被辞退男子被猫抓伤后确诊“猫抓病”特朗普无法缴纳4.54亿美元罚金倪萍分享减重40斤方法联合利华开始重组张家界的山上“长”满了韩国人?张立群任西安交通大学校长杨倩无缘巴黎奥运“重生之我在北大当嫡校长”黑马情侣提车了专访95后高颜值猪保姆考生莫言也上北大硕士复试名单了网友洛杉矶偶遇贾玲专家建议不必谈骨泥色变沉迷短剧的人就像掉进了杀猪盘奥巴马现身唐宁街 黑色着装引猜测七年后宇文玥被薅头发捞上岸事业单位女子向同事水杯投不明物质凯特王妃现身!外出购物视频曝光河南驻马店通报西平中学跳楼事件王树国卸任西安交大校长 师生送别恒大被罚41.75亿到底怎么缴男子被流浪猫绊倒 投喂者赔24万房客欠租失踪 房东直发愁西双版纳热带植物园回应蜉蝣大爆发钱人豪晒法院裁定实锤抄袭外国人感慨凌晨的中国很安全胖东来员工每周单休无小长假白宫:哈马斯三号人物被杀测试车高速逃费 小米:已补缴老人退休金被冒领16年 金额超20万