100% satisfaction guarantee Immediately available after payment Read online or as PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CSCI 340 – Exam 2 Study Guide

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
06-09-2025
Written in
2025/2026

CSCI 340 Exam 2, focusing on tree structures and related algorithms. It covers binary trees, binary search trees (BST), AVL trees (definitions, balance factors, rotations), threaded binary trees, and tree traversals (inorder, preorder, postorder) with recursive and nonrecursive code examples. It also reviews binary heaps (max heap, min heap), complete and almost complete binary trees, and STL algorithms such as push_heap and pop_heap. Additional content includes array vs. linked representations of trees and traversal logic with references to visual diagrams

Show more Read less
Institution
CSCI 340
Course
CSCI 340

Content preview

AVL Example


Give this one a try later!


http://www.qmatica.com/DataStructures/Trees/AVL/AVLTree.html




Recursive Inorder Travesal Code

, Give this one a try later!


template <class T>
void BTree<T>::inorder(Node<T>* p) const
{
if (p != nullptr)
{
inorder(p->left);
cout << p->data << ' ';
inorder(p->right);
}
}




AVL Tree Insertion


Give this one a try later!


https://webcourses.niu.edu/bbcswebdav/pid-3845215-dt-content-rid-
23256520_2/courses/20152-CSCI-340-----2/AVL%20Trees.pdf




Binary Tree


Give this one a try later!


A binary tree consists of a finite set of nodes that is either empty, or
consists of one specially designated node called the root of the binary
tree, and the elements of two disjoint binary trees called the left subtree
and right subtree of the root.




In-Order

Written for

Institution
CSCI 340
Course
CSCI 340

Document information

Uploaded on
September 6, 2025
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BestKey chamberlain university
View profile
Follow You need to be logged in order to follow users or courses
Sold
261
Member since
3 year
Number of followers
108
Documents
7407
Last sold
5 hours ago

This Page Provides Excellent Exam Solutions and Study Guides that Guarantee Top Grades

3.9

75 reviews

5
38
4
12
3
11
2
7
1
7

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions