100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

COSC 2336 Final Exam Review (Questions and Answers updated) Already Graded A+100% Excel

Beoordeling
-
Verkocht
-
Pagina's
21
Cijfer
A+
Geüpload op
28-05-2024
Geschreven in
2023/2024

COSC 2336 Final Exam Review (Questions and Answers updated) Already Graded A+100% Excel True or False? The Weighted Edge class extends Abstract Graph.Edge. - CORRECT ANSWER-True A Weighted Edge object contains the public data fields _______. - CORRECT ANSWER-u, v, weight The adjacent edge for each vertex in the Weighted Graph class is stored in _________. - CORRECT ANSWER-an Array List The Weighted Graph is a subtype of _________. - CORRECT ANSWER-Graph/Abstract Graph The add Ege (u, v, w) method performs the following operations: - CORRECT ANSWER-Invokes super. add(u, v) to add an edge. Adds a weighed edge to the adjacent list for vertex u. Adds a weighed edge to the adjacent list for vertex v. A hashing function ______. - CORRECT ANSWER-maps a key to an index in the hash table If each key is mapped to a different index in the hash table, it is called _____. - CORRECT ANSWER-perfect hashing A collision occurs _________. - CORRECT ANSWER-when two or more keys are mapped to the same hash value. True or False: Every object has the has Code() method. - CORRECT ANSWER-True What is the return type for the hash Code() method? - CORRECT ANSWER-int True or False: Two objects are equal if their hash Codes are the same. - CORRECT ANSWER-False True or False: Two objects have the same hash Codes if they are equal. - CORRECT ANSWER-True If two strings are equal, the two strings have the same hash Codes. - CORRECT ANSWER-True For an Integer object with value 20, what is its hash Code? - CORRECT ANSWER-20 1<<2 is ______. - CORRECT ANSWER-4 _______ is to find an open location in the hash table in the event of collision. - CORRECT ANSWER-Open addressing When a collision occurs during the insertion of an entry to a hash table, _________ finds the next available location sequentially. - CORRECT ANSWER-linear probing The ______ places all entries with the same hash index into the same location, rather than finding new locations. - CORRECT ANSWER-separate chaining scheme _______ measures how full the hash table is. - CORRECT ANSWER-Load factor _______ finds the next available location quadratically when a collision occurs. - CORRECT ANSWER-Quadratic probing _____ maps a key to an index in a Hash table. - CORRECT ANSWER-Hash Function _____ is to reinsert the elements into the table after the hash table is resized. - CORRECT ANSWER-Rehash _____ is the ration between the number of elements and the ash table size. - CORRECT ANSWER-Load Factor _____ occurs when two keys are mapped to the same index. - CORRECT ANSWER-Collision _____ uses a secondary hashing function along with the primary hash function to find an available location for a key when a collision occurs - CORRECT ANSWER-Double Hashing A ____ is an edge that links to a vertex to itself. - CORRECT ANSWER-loop If two vertices are connected by two or more edges, these edges are called - CORRECT ANSWER-parallel edge A ____ is the one in which every two pairs of vertices are connected - CORRECT ANSWER-complete graph What is the number of edges in a complete graph of n vertices? - CORRECT ANSWER-n(n-1)/2 What is the number of edges in a tree of n vertices? - CORRECT ANSWER-n - 1 ___ is graph in which edges are not weighted - CORRECT ANSWER- Unweighted Graph ____ is an edge that connects to a vertex itself. - CORRECT ANSWER-Loop _____ of G is a sub-graph of G. The sub-graph connects all the vertices in G without cycles. - CORRECT ANSWER-Spanning Tree ____ refers to two or more edges between two vertices. - CORRECT ANSWER-Parallel Edges _____ is a graph that does not have loops or parallel edges. - CORRECT ANSWER-Simple Graph _____ is a graph in which edges have no directions - CORRECT ANSWER-Undirected Graph ____ of a vertex is the number of edges connected to the vertex. - CORRECT ANSWER-Degree ___ refers to a closed path in a graph. - CORRECT ANSWER-Cycle ____ of G is a graph whose vertices is a subset of the vertices in G and edges are subset of edges in G. - CORRECT ANSWER-Sub-graph ____ is a graph in which there is an edge between any pair of vertices. - CORRECT ANSWER-Complete Graph The _____ search of a graph first visits a vertex, then it recursively visits all the vertices adjacent to that vertex. - CORRECT ANSWER-depth-first True of False: The time complexity of the DFS algorithm is O(|E|+|V|). - CORRECT ANSWER-True The ____ search of a graph first visits a vertex, then all its adjacent vertices, then all the vertices adjacent to those vertices and so on. - CORRECT ANSWER-breadth-first True or False: The time complexity of the BFS algorithm is O(|E|+|V|), - CORRECT ANSWER-True True or false: The WeightedEdge class extends AbstractGraph Edge - CORRECT ANSWER-True A WeightedEdge object contains the public data fields ______. - CORRECT ANSWER-u,v,weight The adjacent edge for each vertex in the WeightedGraph class is stored in____ - CORRECT ANSWER-an ArrayList The WeightedGraph is a subtype of ____. - CORRECT ANSWER-Abstract Graph and Graph The addEdge(u,v,w) method performs the following operations: - CORRECT ANSWER-Invokes (u,v) to add an edge. Adds a weighted edge to the adjacent list ofr vertex u.

Meer zien Lees minder
Instelling
COSC 2336
Vak
COSC 2336










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
COSC 2336
Vak
COSC 2336

Documentinformatie

Geüpload op
28 mei 2024
Aantal pagina's
21
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
BrooksOfBliss Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
23
Lid sinds
1 jaar
Aantal volgers
12
Documenten
299
Laatst verkocht
6 maanden geleden
Brooks Of Bliss

Thanks in advance. We are pleased to be here just for you. We are offering the Best materials Already Graded A+ 100% Correct for Your Career Excellence in all your Exams. All the best in your study. Message me if you can not find the document you are looking for and i will assist you. Thanks again for purchasing my documents and Review to help others who need the best documents, kindly also refer others so that they can benefit from my documents ._Brooks of Blisss Here For Your Excellency.

Lees meer Lees minder
4,3

6 beoordelingen

5
4
4
0
3
2
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen