{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

1.4.2. Graphs Flashcards

(10 cards)

1
Q

What is a graph?

A

Set of vertices or nodes connected by edges or arcs
Edges may be one way or two way

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a digraph of directed graph?

A

When edges in graph are all one way

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does it mean for an edge to be adjacent?

A

If 2 vertices are connected by an edge they are adjacent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are undirected graphs drawn?

A

Order of pairs in edges don’t matter as edges go both ways
So drawn using straight lines with no arrowheads between vertices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Difference between directed and undirected

A

Undirected edges go in both directions (no order or direction is specified)

Directed graphs - edges specify direction - order of edges matter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How are directed graphs drawn!

A

Edges drawn using arrowheads MISS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does it mean by a graphs is weighted?

A

Each edge has a value representing a cost or relationship between vertices
Value can represent many things depending on context (time, distance money etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a directed graph?

A

Notes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Advantages

A

Very convenient
Very easy to work with
Adding edges is v simple

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Disadvantages for adjacent matrices

A

Large amounts of memory space can be wasted in graphs with many nodes but only a few edges as most of cells will be empty

Using static 2 dimensional arrays can be difficult to make changes adding and deleting nodes etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly