Mappings A map is a correspondence between two sets of values. A map can be represented explicitly or implicitly: –{ (0,0), (1,1), (2,4), (3,9), (4,16),

Slides:



Advertisements
Similar presentations
Map Collections and Custom Collection Classes Chapter 14.
Advertisements

Chapter Equations 1.6 Relations 1.7 Functions.
Dictionaries Again Collection of pairs.  (key, element)  Pairs have different keys. Operations.  Get(theKey)  Delete(theKey)  Insert(theKey, theElement)
Chapter 10 2D Arrays Collection Classes. Topics Arrays with more than one dimension Java Collections API ArrayList Map.
Function: Definition A function is a correspondence from a first set, called the domain, to a second set, called the range, such that each element in the.
Section 1.2 Basics of Functions
1.6 Functions. A relation is a pairing of input values with output values. It can be shown as a set of ordered pairs (x,y), where x is an input and y.
Boolean Functions.
What is a Relation? What is a Function? Have we seen these before??
4-1: Relations and Functions
CSE 331 Software Design & Implementation Hal Perkins Autumn 2012 Java Classes, Interfaces, and Types 1.
4-3 Relations Objective: Students will represent relations as sets of ordered pairs, tables, mappings, and graphs. Students will find the inverse of a.
SECTION 1.1 FUNCTIONS FUNCTIONS. DEFINITION OF A RELATION A relation is a correspondence between two sets. If x and y are two elements in these sets and.
§ 2.1 Introduction to Functions and sets from 1.1.
Inverse Relations and Functions 7-7. Inverse Relations If a relation maps element a of its domain to element b of its range, the INVERSE RELATION “undoes”
Properties of Functions Operations on Functions
Relations and Functions
Implicit Differentiation
Graphing Test Review Algebra. Express the relation as a set of ordered pairs and the inverse. xy
Functions. Evaluating Functions Graphing Functions.
Section 2.1 Functions. A relation is a correspondence between two sets. If x and y are two elements in these sets and if a relation exists between x.
Functions Section 1.4. Relation The value of one variable is related to the value of a second variable A correspondence between two sets If x and y are.
CIT 590 Intro to Programming Lecture 6 (dictionaries)
Implicit Differentiation. Implicitly vs. Explicitly Defined Functions y is given explicitly as a function of x (y is solved in terms of x) y is given.
Section 2.1 Notes: Relations and Functions
Warm Up Use the graph for Problems 1–2. 1. List the x-coordinates of the points. 2. List the y-coordinates of the points. –2, 0, 3, 5 3, 4, 1, 0.
CPSC 252 Tables / Maps / Dictionaries Page 1 Tables, Maps and Dictionaries A table (or map or dictionary) is a collection of key/value pairs. In general.
Review Functions. Function A function is a special type of relation in which each element of the domain is paired with exactly one element of the range.
Functions 4-6 I can determine whether a relation is a function and find function values. S. Calahan 2008.
Introduction to Functions Honors Math – Grade 8. KEY CONCEPT Function A function is a relation in which each element of the domain is paired with exactly.
3-1 Representing Relations
Relations and Functions
Graphing Relationships
Functions and Their Graphs
Mrs.Volynskaya Functions
Hire Toyota Innova in Delhi for Outstation Tour
2-1 Relations and Functions
Relations and Functions
2-1 Relations and Functions
Developing approaches to learning skills Step 1Objective strand: Approaches to learning skill: Step 2Explicit learning experience: Step 3Implicit learning.
Functions, Relations, Domain, & Range
FUNCTION DEFINITION: A RELATION IN WHICH EACH ELEMENT OF THE DOMAIN IS PAIRED WITH EXACTLY ONE ELEMENT OF THE RANGE. IN OUR OWN WORDS THIS MEANS ALL X-VALUES.
الذاكرة طويلة المدى Long-Term Memory
Relations and Functions
Evaluating Functions.
Relations and Functions
Objectives Identify functions.
FUNCTION NOTATION AND EVALUATING FUNCTIONS
Unit 3c: Relations and Functions
2-1: Graphing Linear Relations and Functions
solution set (describes all values that make an equation true.)
Do Now: Make a K-W-L Chart Complete what you KNOW about functions
Aim: What is the function notation?
September 30, 2011 At the end of today, you will be able to: Analyze and graph relations. Find functional values. Warm-up: Evaluate the expression if:
STORE MANAGER RESPONSIBILITIES.
Exercise Give the domain and range of the following relation.
1.6 - Relations.
Relations and Functions
Example 1: Identifying Functions
Objectives Write functions using function notation.
Hashing in java.util
Functions and Relations
By: Gilberto Rodriguez
UNDERSTANDING FUNCTIONS
Objectives Identify functions.
I can determine whether a relation is a function
2-1 Relations & Functions
Chapter 2 Functions, Equations, and Graphs
Dictionary.
Domain-Range f(x) Notation
Presentation transcript:

Mappings A map is a correspondence between two sets of values. A map can be represented explicitly or implicitly: –{ (0,0), (1,1), (2,4), (3,9), (4,16), (5,25), (6,36) } –f(x) = x 2 Explicit representation can be expressed in different ways.

HashMap A HashMap is a data structure which holds pairs of values. –the first element of the pair is called the key –the second element of the pair is called the value Example: –UB number : transcript –DL number : driving record –Grocery store keytag number : shopping record –java.awt.point : graphics.Rectangle

HashMap is not a Collection