Home › Compare
Compare
Concepts, loops, data structures and models that are easy to mix up, side by side.
Lecture 2: Goal and basic conceptsOpen
Internal versus external memory
| RAM (internal) | External memory | |
|---|---|---|
| Location | inside the computer, next to the CPU | hard disk, USB stick, external drive |
| Without power | content is lost | content is kept |
| Capacity | rather small | much larger |
| Speed | very fast | slower |
Lecture 3: AlgorithmsOpen
While, Repeat and For
| While | Repeat ... Until | For | |
|---|---|---|---|
| Test | before the body | after the body | counter against end value |
| Minimum runs | 0 | 1 | 0 |
| Stops when | condition False | condition True | counter passes the end |
| Typical use | unknown number of passes | act first, then test | known number of passes |
Three representations
| Flow chart | Nassi-Schneiderman | Pseudo code | |
|---|---|---|---|
| Form | figures and arrows | nested blocks | structured text |
| Loops shown as | an arrow back to a diamond | a block that wraps the body | While ... EndDo, Repeat ... Until |
| Risk | spaghetti of arrows | needs planning before drawing | ambiguity if keywords are loose |
Lecture 4: Programming conceptsOpen
Language generations
| Machine language | Assembler | Third generation | |
|---|---|---|---|
| Looks like | 01001101 | LD, ADDI, ST | if, for, x = y + 3 |
| Translation | none | assembler program | compiler or interpreter |
| Machine specific? | yes | yes | no |
| Statements per machine instruction | one | one | many machine instructions per statement |
Compiler versus interpreter
| Compiler | Interpreter | |
|---|---|---|
| When translated | whole program, before running | one instruction at a time, while running |
| Syntax errors | all reported before anything runs | found when the line is reached |
| Examples in the course | Fortran, Pascal, COBOL | BASIC, Prolog, Python |
Python 1: Data types, operators and stringsOpen
Three kinds of division
| / | // | % | |
|---|---|---|---|
| Name | division | floor division | modulo |
| 17 and 5 | 3.4 | 3 | 2 |
| Result type with two ints | always float | int | int |
| Typical use | averages, prices | how many whole times | even or odd, last digit, leftovers |
Python 2: If, while and forOpen
Loops: algorithm versus Python
| Algorithm | Python | Note |
|---|---|---|
| While condition Do ... EndDo | while condition: | same meaning, tested first |
| Repeat ... Until condition | while True: ... if condition: break | no built-in Repeat; body runs at least once |
| For X from E1 to E2 Step E3 | for x in range(E1, E2 + 1, E3): | range stops before its stop value |
| Case | if ... elif ... else | first True branch wins |
Python 3: Lists, tuples, sets and dictionariesOpen
List, tuple, set, dictionary
| list | tuple | set | dictionary | |
|---|---|---|---|---|
| Brackets | [ ] | ( ) | { } with values | { } with key: value |
| Ordered | yes | yes | no | insertion order, no positions |
| Mutable | yes | no | yes | yes |
| Duplicates | allowed | allowed | not possible | keys unique |
| Access | by position | by position | membership only | by key |
Python 4: Functions and filesOpen
File modes
| "r" | "w" | "a" | |
|---|---|---|---|
| Purpose | read | write | append |
| File missing | FileNotFoundError | file is created | file is created |
| Existing content | kept | erased first | kept, new text added at the end |
Python 5: Reading code, errors and testingOpen
When errors appear
| Syntax errors | Runtime errors | Logical errors | |
|---|---|---|---|
| Examples | missing colon, unclosed quote | NameError, TypeError, KeyError | wrong formula, off by one |
| Detected | before the program runs | when the line is reached | only by testing |
| Output before the error | none | everything printed so far | the program runs and gives wrong results |
Lecture 5: Functionalities: BPMN and use casesOpen
Three gateways
| Exclusive | Parallel (fork) | Inclusive | |
|---|---|---|---|
| Paths taken | exactly one | all | one or more |
| Symbol | empty diamond or X | diamond with + | diamond with circle |
| Example | beamer needed: yes or no | prepare invoice and ship goods at the same time | beverages and/or beamer |
Include versus extend
| Include | Extend | |
|---|---|---|
| Meaning | always part of the base use case | optional extra behaviour |
| Example | withdraw money includes adjust balance | buy car extended by add option |
| Arrow | dashed, from base to included use case | dashed, from extension to base use case |
Lecture 6: Project managementOpen
Resource types
| Work | Material | Cost | |
|---|---|---|---|
| Examples | people, equipment | tapes, cement, paper | travel, catering |
| Cost driver | hours worked x rate | units used x price | amount entered |
| Max units | yes | no (label such as cassette) | no |
| Affects duration | yes | no | no |
Lecture 7: Classes and databasesOpen
Spreadsheet list versus relational database
| Spreadsheet list | Relational database | |
|---|---|---|
| Structure | one two-dimensional sheet | several tables linked by keys |
| Empty cells | many in large lists | avoided by separate tables |
| Repetition | same information repeated | stored once, referred to by key |
| Good for | small lists, quick sorting and filtering | large, shared, changing data |
Composition, aggregation, generalisation
| Composition | Aggregation | Generalisation | |
|---|---|---|---|
| Relationship | strong part of | weak part of | is a |
| Symbol | filled diamond | hollow diamond | hollow triangle |
| Example | room of a building | player in a team | savings account is an account |
| An association? | yes, special | yes, special | no |
Lecture 8: Informatics in a business contextOpen
Three phases of computer architecture
| Mainframe | PC and client/server | Browser and cloud | |
|---|---|---|---|
| Period | 1960s to 1980s | from the 1980s | from the 1990s |
| Client | dumb client | fat client | thin client |
| Where logic and data are | central | distributed over clients and servers | mainly on servers in the network |
| Main risk | cost, peak load | consistency between clients | network uptime, security |
Network topologies for n nodes
| Fully connected | Star | Ring | Line | |
|---|---|---|---|---|
| Links | n(n - 1) / 2 | n - 1 | n | n - 1 |
| One link breaks | no problem | one node cut off | still connected the other way | network split in two |
| Weak point | cost of links | the central node | two breaks | every link |
Lecture 9: Enterprise applicationsOpen
ERP, SCM and CRM
| ERP | SCM | CRM | |
|---|---|---|---|
| Focus | all internal processes | flow of goods with suppliers and channels | relationship with customers |
| Key benefit | integration, one database | lower stock and lead times | retention and sales growth |
| Lecture remark | often fails in implementation | not feasible without IT | three types; de-marketing |
Lecture 10: New business modelsOpen
B2C, B2B and C2C
| B2C | B2B | C2C | |
|---|---|---|---|
| Seller | company | company | private person |
| Buyer | consumer | company | private person |
| Typical feature | web shop, marketing to many | large orders, EDI integration | platform takes a fee or advertising |
| Example | Amazon | TradeKey | eBay |
Lecture 11: Current trends in ITOpen
Cloud service models
| IaaS | PaaS | SaaS | BPaaS | |
|---|---|---|---|---|
| Provider delivers | infrastructure | infrastructure + platform | complete application | complete business process |
| Customer manages | OS and software | own applications | settings only | inputs and results |
| Control for customer | high | medium | low | lowest |
| Example | virtual servers | development platform | web mail, online CRM | payroll |
Malware
| Virus | Worm | Trojan horse | Spyware | |
|---|---|---|---|---|
| Stand-alone? | no, attaches to a program | yes | yes, disguised | yes |
| Spreads by itself? | with the infected program | yes | no | no |
| Main harm | damage, spreading | spreading, network load | opens the door to others | watches what you do |
Readers: The five readersOpen
Public, private and hybrid cloud
| Public | Private | Hybrid | |
|---|---|---|---|
| Owned by | the provider | one organisation (or hosted for it) | mix |
| Shared with others | yes | no | partly |
| Strong point | cheap, scalable | security, control | flexibility |
| Typical user | small businesses, consumers | banks, governments | large companies |