Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 6 . In a linked list implementation of Merge Sort, the linked list needs to be divided recursively from the middle. After dividing, the
Q In a linked list implementation of Merge Sort, the linked list needs to be divided recursively from the middle. After dividing, the sublists can then be merged back in a sorted manner. Describe how you would divide the linked list and provide the implementation for this process.Q A strictly binary tree is defined as a tree whose nodes are either leaf nodes or have children. Write a recursive member function for the BinaryTree class that returns true if a tree is a strictly binary tree, false otherwise. Q Write a program to find the missing passengers of a flight to be used in an airport. First, read the information of passengers id and name who have bought a ticket for a certain flight from a text file and insert them into a Binary Search Tree sorted according to passenger names. A sample text file is shown below: Then from the keyboard, read the names of passengers who have boarded the plane and delete them from the Binary Search Tree. Continue this process until is inputted. To announce the missing passengers at the airport, output the ids and names of all the passengers alphabetically who have not yet boarded the plane as seen in the sample run. Sample Run: Enter passenger names who have boarded the plane ending with a : GulDemir AhmetTurkoglu Missing Passengers: AhmetOzkan CemilUzun HEADER FILES...
Q In a linked list implementation of Merge Sort, the linked list needs to be divided
recursively from the middle. After dividing, the sublists can then be merged back in a sorted
manner. Describe how you would divide the linked list and provide the implementation
for this process.Q A strictly binary tree is defined as a tree whose nodes are either leaf nodes or have
children. Write a recursive member function for the BinaryTree class that returns true if a tree
is a strictly binary tree, false otherwise.
Q Write a program to find the missing passengers of a flight to be used in an airport. First,
read the information of passengers id and name who have bought a ticket for a certain flight
from a text file and insert them into a Binary Search Tree sorted according to passenger
names. A sample text file is shown below:
Then from the keyboard, read the names of passengers who have boarded the plane and
delete them from the Binary Search Tree. Continue this process until is inputted. To
announce the missing passengers at the airport, output the ids and names of all the
passengers alphabetically who have not yet boarded the plane as seen in the sample run.
Sample Run:
Enter passenger names who have boarded the plane ending with a :
GulDemir
AhmetTurkoglu
Missing Passengers:
AhmetOzkan
CemilUzun
HEADER FILES...
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started