# Class Notes for CSE 250 at University at Buffalo (UB)

• 16 Results
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture Notes - Lecture 6: Memory Leak

Hannah Ketchum2 Page
13 Feb 2017
1
Create a reference: int x = 10; int& int_ref = x; Take the address of a variable, use address-of operator (&): int x = 10; int* int_ptr = &x; Automatic
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture Notes - Lecture 14: Disk Array

Hannah Ketchum3 Page
3 Mar 2017
0
Our assignment operator and copy constructor for csevector creates a copy of everything from v1. push_back(i); the other object: //adds (cid:858)(cid:1
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture Notes - Lecture 9: Entry Point, Subsequence, Product Rule

Hannah Ketchum2 Page
17 Feb 2017
0
We can access a subsequence: set begin and end to other locations int a[5]; int* begin = a+1; int* end = a+3, this covers the two element sequence a[1]
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture 7: 2.13.17 lecture 7 Logic Gates and IC Chips

Hannah Ketchum3 Page
13 Feb 2017
0
Logic gates: name of gate, graphic symbol, algebraic symbol, logic expression, truth table. Not (cid:858) x (cid:454)(cid:859) x(with a bar over top) (
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture Notes - Lecture 4: American Recovery And Reinvestment Act Of 2009, Optio

Hannah Ketchum3 Page
21 Feb 2017
0
We could return an array, some grouping of doubles, etc. double average; double median; double range; When we are done with the pointers, they disappea
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture 3: 2.14.17 recitation 3 Pointers and References

Hannah Ketchum2 Page
16 Feb 2017
0
Pointers std::cout << *int _ptr += 10; std::cout << num << std::endl; std::cout << othernum << endl; std::cout << *int_ptr << endl; If we were printing
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture Notes - Lecture 3: Standard Streams

Hannah Ketchum2 Page
6 Feb 2017
2
Finishing up basic types string is a commonly used type, although it is a class (comes from <iostream> and <string>) if you i(cid:374)(cid:272)lude <io
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture Notes - Lecture 10: Limit Superior And Limit Inferior, If And Only If

Hannah Ketchum2 Page
21 Feb 2017
0
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture 5: 2.28.17 recitation 5 Big-Oh analysis and examples

Hannah Ketchum4 Page
28 Feb 2017
0
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture 17: 3.8.17 lecture 17 Combining Two Lists

Hannah Ketchum2 Page
13 Mar 2017
0
View Document
UBCSE 250Andrew HughesSpring

## CSE 250 Lecture 16: 3.6.17 lecture 16 Lists

Hannah Ketchum2 Page
6 Mar 2017
0
A list is represe(cid:374)ted as a poi(cid:374)ter (cid:272)alled (cid:862)head(cid:863) to the first ele(cid:373)e(cid:374)t. Node* head ---> 15 --> 2
View Document
UBCSE 250Andrew HughesSpring

Hannah Ketchum2 Page
4 Mar 2017
0
Our cost for each insertion is o(1) (since we have nothing to shift right). Doubling occurs every time out number has the form 2i: costs o(2i): we have
View Document

## Popular Professors

View all professors (1+)

Class Notes (1,100,000)
US (480,000)
UB (3,000)
CSE (100)
CSE 250 (10)