please provide whole solution in java please thank you Many entities-.pdf

please provide whole solution in java please thank you Many entities, such as electronics and biological organisms, can be organized in a taxonmy. How would you design a system that stores the taxonomy and allow queries on the taxonmy? The goal of HW3 is to build a tree from categories of entities and answer queries on the tree. Your submission has a tree with a linked structure of tree nodes and supports (at least) the following operations: - addChild(childNode) // to maintain alphabetical/lexicographical order of the children - getChildren() - getParent() For each node, you may not assume it has a fixed or maximum number of children. We will evaluate your submission on code01.fit.edu, so you are strongly recommended to ensure your program functions properly on code01.fit.edu. To preserve invisible characters, we strongly recommend you to download, NOT copy and paste, input data files. Input: Input is from the command-line arguments for HW3.java (hw3.c) in this order: 1. filename of the data - the first line has the top category, followed by its sub-categories; each of the following lines has a category, followed by its sub-categories. 2. filename of queries, each line has one of the following queries: - DirectSupercategory category - DirectSubcategories category - AllSupercategories category - AllSubcategories category - NumberOfAllSupercategories category - NumberOfAllSubcategories category - IsSupercategory category supercategory - IsSubcategory category subcategory - ClosestCommonSupercategory category 1 category 2 You may assume categories in the queries exist in the data. Sample input files are on the course website. Output: Output goes to the standard output (screen), each line has an answer with the corresponding query: - DirectSupercategory category supercategory - DirectSubcategories category subcategory 1 subcategory 2 ... - AllSupercategories category supercategory1 supercategory 2 ... - AllSubcategories category subcategory 1 subcategory 2 ... - NumberOfAllSupercategories category count - NumberOfAllSubcategories category count - IsSupercategory category supercategory yes/no - IsSubcategory category subcategory yes/no - ClosestCommonSupercategory category 1 category 2 closestCommonSupercategory DirectSubcategories (if any) are in the alphabetical/lexicographical order. AllSubcategories (if any) are in "pre-order." AllSupercategories (if any) are in the order of supercategory, grand- supercategory, ... IsSupercategory/IsSubcategory refers to any supercategory/subcategory. ClosestCommonSupercategory (if any) is the deepest supercategory of both categories. Sample output is on the course website..

please provide whole solution in java please thank you
Many entities, such as electronics and biological organisms, can be organized in a taxonmy. How
would you design a system that stores the taxonomy and allow queries on the taxonmy? The goal
of HW3 is to build a tree from categories of entities and answer queries on the tree. Your
submission has a tree with a linked structure of tree nodes and supports (at least) the following
operations: - addChild(childNode) // to maintain alphabetical/lexicographical order of the
children - getChildren() - getParent() For each node, you may not assume it has a fixed or
maximum number of children. We will evaluate your submission on code01.fit.edu, so you are
strongly recommended to ensure your program functions properly on code01.fit.edu. To preserve
invisible characters, we strongly recommend you to download, NOT copy and paste, input data
files. Input: Input is from the command-line arguments for HW3.java (hw3.c) in this order: 1.
filename of the data - the first line has the top category, followed by its sub-categories; each of
the following lines has a category, followed by its sub-categories. 2. filename of queries, each
line has one of the following queries: - DirectSupercategory category - DirectSubcategories
category - AllSupercategories category - AllSubcategories category -
NumberOfAllSupercategories category - NumberOfAllSubcategories category - IsSupercategory
category supercategory - IsSubcategory category subcategory - ClosestCommonSupercategory
category 1 category 2 You may assume categories in the queries exist in the data. Sample input
files are on the course website. Output: Output goes to the standard output (screen), each line has
an answer with the corresponding query: - DirectSupercategory category supercategory -
DirectSubcategories category subcategory 1 subcategory 2 ... - AllSupercategories category
supercategory1 supercategory 2 ... - AllSubcategories category subcategory 1 subcategory 2 ... -
NumberOfAllSupercategories category count - NumberOfAllSubcategories category count -
IsSupercategory category supercategory yes/no - IsSubcategory category subcategory yes/no -
ClosestCommonSupercategory category 1 category 2 closestCommonSupercategory
DirectSubcategories (if any) are in the alphabetical/lexicographical order. AllSubcategories (if
any) are in "pre-order." AllSupercategories (if any) are in the order of supercategory, grand-
supercategory, ... IsSupercategory/IsSubcategory refers to any supercategory/subcategory.
ClosestCommonSupercategory (if any) is the deepest supercategory of both categories. Sample
output is on the course website.

Recomendados

In Java Please Thank you!! Many entities- such as electronics and biol.docx von
In Java Please Thank you!! Many entities- such as electronics and biol.docxIn Java Please Thank you!! Many entities- such as electronics and biol.docx
In Java Please Thank you!! Many entities- such as electronics and biol.docxGordonpACKellyb
6 views1 Folie
Prg421 von
Prg421Prg421
Prg421john roy
29 views7 Folien
So far, you have learned about design and how to create a simple.docx von
So far, you have learned about design and how to create a simple.docxSo far, you have learned about design and how to create a simple.docx
So far, you have learned about design and how to create a simple.docxpbilly1
3 views3 Folien
Session 2 django material for training at baabtra models von
Session 2 django material for training at baabtra modelsSession 2 django material for training at baabtra models
Session 2 django material for training at baabtra modelsbaabtra.com - No. 1 supplier of quality freshers
1.4K views41 Folien
Booa8 Slide 03 von
Booa8 Slide 03Booa8 Slide 03
Booa8 Slide 03oswchavez
441 views56 Folien
Booa8 Slide 03 von
Booa8 Slide 03Booa8 Slide 03
Booa8 Slide 03oswchavez
482 views56 Folien

Más contenido relacionado

Similar a please provide whole solution in java please thank you Many entities-.pdf

food,banana,5,200.0food,bread,10,120.0household,toaster,5.docx von
food,banana,5,200.0food,bread,10,120.0household,toaster,5.docxfood,banana,5,200.0food,bread,10,120.0household,toaster,5.docx
food,banana,5,200.0food,bread,10,120.0household,toaster,5.docxbudbarber38650
3 views55 Folien
The Bash Dashboard (Or: How to Use Bash for Data Analysis) von
The Bash Dashboard (Or: How to Use Bash for Data Analysis)The Bash Dashboard (Or: How to Use Bash for Data Analysis)
The Bash Dashboard (Or: How to Use Bash for Data Analysis)Bram Adams
1.8K views72 Folien
Bt0082, visual basic von
Bt0082, visual basicBt0082, visual basic
Bt0082, visual basicsmumbahelp
148 views4 Folien
Pega Training institutes in Banglore ( ashockroy99@gmail.com) von
Pega Training institutes in Banglore ( ashockroy99@gmail.com)Pega Training institutes in Banglore ( ashockroy99@gmail.com)
Pega Training institutes in Banglore ( ashockroy99@gmail.com)Ashock Roy
204 views2 Folien
Root cause of community problem for this discussion, you will i von
Root cause of community problem for this discussion, you will iRoot cause of community problem for this discussion, you will i
Root cause of community problem for this discussion, you will issusere73ce3
27 views9 Folien
Cosc 1436 java programming/tutorialoutlet von
Cosc 1436 java programming/tutorialoutletCosc 1436 java programming/tutorialoutlet
Cosc 1436 java programming/tutorialoutletWoodardz
179 views10 Folien

Similar a please provide whole solution in java please thank you Many entities-.pdf(20)

food,banana,5,200.0food,bread,10,120.0household,toaster,5.docx von budbarber38650
food,banana,5,200.0food,bread,10,120.0household,toaster,5.docxfood,banana,5,200.0food,bread,10,120.0household,toaster,5.docx
food,banana,5,200.0food,bread,10,120.0household,toaster,5.docx
budbarber386503 views
The Bash Dashboard (Or: How to Use Bash for Data Analysis) von Bram Adams
The Bash Dashboard (Or: How to Use Bash for Data Analysis)The Bash Dashboard (Or: How to Use Bash for Data Analysis)
The Bash Dashboard (Or: How to Use Bash for Data Analysis)
Bram Adams1.8K views
Bt0082, visual basic von smumbahelp
Bt0082, visual basicBt0082, visual basic
Bt0082, visual basic
smumbahelp148 views
Pega Training institutes in Banglore ( ashockroy99@gmail.com) von Ashock Roy
Pega Training institutes in Banglore ( ashockroy99@gmail.com)Pega Training institutes in Banglore ( ashockroy99@gmail.com)
Pega Training institutes in Banglore ( ashockroy99@gmail.com)
Ashock Roy204 views
Root cause of community problem for this discussion, you will i von ssusere73ce3
Root cause of community problem for this discussion, you will iRoot cause of community problem for this discussion, you will i
Root cause of community problem for this discussion, you will i
ssusere73ce327 views
Cosc 1436 java programming/tutorialoutlet von Woodardz
Cosc 1436 java programming/tutorialoutletCosc 1436 java programming/tutorialoutlet
Cosc 1436 java programming/tutorialoutlet
Woodardz179 views
]project-open[ Data-Model “Categories” von Klaus Hofeditz
]project-open[ Data-Model “Categories”]project-open[ Data-Model “Categories”
]project-open[ Data-Model “Categories”
Klaus Hofeditz1.4K views
130614 sebastiano panichella - mining source code descriptions from develo... von Ptidej Team
130614   sebastiano panichella -  mining source code descriptions from develo...130614   sebastiano panichella -  mining source code descriptions from develo...
130614 sebastiano panichella - mining source code descriptions from develo...
Ptidej Team301 views
PRG 421 Education Specialist / snaptutorial.com von McdonaldRyan108
PRG 421 Education Specialist / snaptutorial.comPRG 421 Education Specialist / snaptutorial.com
PRG 421 Education Specialist / snaptutorial.com
McdonaldRyan1087 views
Strayer cis 406 week 10 assignment 2 u grade new von shyaminfo16
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
shyaminfo1618 views
SE-IT JAVA LAB SYLLABUS von nikshaikh786
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUS
nikshaikh786899 views
Strayer cis 406 week 10 assignment 2 u grade new von dixonbakerr
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
dixonbakerr32 views
Strayer cis 406 week 10 assignment 2 u grade new von charlesangles123
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new von chanduruc123
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
chanduruc12320 views
Strayer cis 406 week 10 assignment 2 u grade new von shyaminfo40
Strayer cis 406 week 10 assignment 2 u grade newStrayer cis 406 week 10 assignment 2 u grade new
Strayer cis 406 week 10 assignment 2 u grade new
shyaminfo409 views
INF 103 Course Success is a Tradition / newtonhelp.com von rock123450
INF 103 Course Success is a Tradition / newtonhelp.comINF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.com
rock12345042 views
ContentsCOSC 2436 – LAB4TITLE .............................docx von dickonsondorris
ContentsCOSC 2436 – LAB4TITLE .............................docxContentsCOSC 2436 – LAB4TITLE .............................docx
ContentsCOSC 2436 – LAB4TITLE .............................docx
dickonsondorris3 views

Más de RyanF2PLeev

please help me with this assignment it's urgent- so far I have semeste.pdf von
please help me with this assignment it's urgent- so far I have semeste.pdfplease help me with this assignment it's urgent- so far I have semeste.pdf
please help me with this assignment it's urgent- so far I have semeste.pdfRyanF2PLeev
11 views3 Folien
please help show work clearly typed please please help show work clear.pdf von
please help show work clearly typed please please help show work clear.pdfplease help show work clearly typed please please help show work clear.pdf
please help show work clearly typed please please help show work clear.pdfRyanF2PLeev
2 views1 Folie
PLEASE HELP NO IDEA WHERE TO START Question 2- Show the steps in the i.pdf von
PLEASE HELP NO IDEA WHERE TO START Question 2- Show the steps in the i.pdfPLEASE HELP NO IDEA WHERE TO START Question 2- Show the steps in the i.pdf
PLEASE HELP NO IDEA WHERE TO START Question 2- Show the steps in the i.pdfRyanF2PLeev
2 views1 Folie
Please help me with this question! 8- Database Security- (10 points) T (1).pdf von
Please help me with this question! 8- Database Security- (10 points) T (1).pdfPlease help me with this question! 8- Database Security- (10 points) T (1).pdf
Please help me with this question! 8- Database Security- (10 points) T (1).pdfRyanF2PLeev
2 views1 Folie
Please help me fix the error for the following code- #include -cmath-.pdf von
Please help me fix the error for the following code- #include -cmath-.pdfPlease help me fix the error for the following code- #include -cmath-.pdf
Please help me fix the error for the following code- #include -cmath-.pdfRyanF2PLeev
3 views7 Folien
please help and explain thoroughly and show work- Thank you! 1- (.pdf von
please help and explain thoroughly and show work- Thank you!      1- (.pdfplease help and explain thoroughly and show work- Thank you!      1- (.pdf
please help and explain thoroughly and show work- Thank you! 1- (.pdfRyanF2PLeev
2 views1 Folie

Más de RyanF2PLeev(20)

please help me with this assignment it's urgent- so far I have semeste.pdf von RyanF2PLeev
please help me with this assignment it's urgent- so far I have semeste.pdfplease help me with this assignment it's urgent- so far I have semeste.pdf
please help me with this assignment it's urgent- so far I have semeste.pdf
RyanF2PLeev11 views
please help show work clearly typed please please help show work clear.pdf von RyanF2PLeev
please help show work clearly typed please please help show work clear.pdfplease help show work clearly typed please please help show work clear.pdf
please help show work clearly typed please please help show work clear.pdf
RyanF2PLeev2 views
PLEASE HELP NO IDEA WHERE TO START Question 2- Show the steps in the i.pdf von RyanF2PLeev
PLEASE HELP NO IDEA WHERE TO START Question 2- Show the steps in the i.pdfPLEASE HELP NO IDEA WHERE TO START Question 2- Show the steps in the i.pdf
PLEASE HELP NO IDEA WHERE TO START Question 2- Show the steps in the i.pdf
RyanF2PLeev2 views
Please help me with this question! 8- Database Security- (10 points) T (1).pdf von RyanF2PLeev
Please help me with this question! 8- Database Security- (10 points) T (1).pdfPlease help me with this question! 8- Database Security- (10 points) T (1).pdf
Please help me with this question! 8- Database Security- (10 points) T (1).pdf
RyanF2PLeev2 views
Please help me fix the error for the following code- #include -cmath-.pdf von RyanF2PLeev
Please help me fix the error for the following code- #include -cmath-.pdfPlease help me fix the error for the following code- #include -cmath-.pdf
Please help me fix the error for the following code- #include -cmath-.pdf
RyanF2PLeev3 views
please help and explain thoroughly and show work- Thank you! 1- (.pdf von RyanF2PLeev
please help and explain thoroughly and show work- Thank you!      1- (.pdfplease help and explain thoroughly and show work- Thank you!      1- (.pdf
please help and explain thoroughly and show work- Thank you! 1- (.pdf
RyanF2PLeev2 views
PLEASE HELP ME FIX THE FOLLOWING ERRORS! error- 'Complex' was not decl.pdf von RyanF2PLeev
PLEASE HELP ME FIX THE FOLLOWING ERRORS! error- 'Complex' was not decl.pdfPLEASE HELP ME FIX THE FOLLOWING ERRORS! error- 'Complex' was not decl.pdf
PLEASE HELP ME FIX THE FOLLOWING ERRORS! error- 'Complex' was not decl.pdf
RyanF2PLeev3 views
Please help me understand what I have wrong- It looks like my enqueue (1).pdf von RyanF2PLeev
Please help me understand what I have wrong- It looks like my enqueue (1).pdfPlease help me understand what I have wrong- It looks like my enqueue (1).pdf
Please help me understand what I have wrong- It looks like my enqueue (1).pdf
RyanF2PLeev2 views
Please help me a) Draw the Critical Path Method (CPM) network diagram.pdf von RyanF2PLeev
Please help me a) Draw the Critical Path Method (CPM) network diagram.pdfPlease help me a) Draw the Critical Path Method (CPM) network diagram.pdf
Please help me a) Draw the Critical Path Method (CPM) network diagram.pdf
RyanF2PLeev8 views
please help i will give a thumbs up please original answers 4- A dom.pdf von RyanF2PLeev
please help i will give a thumbs up please original answers   4- A dom.pdfplease help i will give a thumbs up please original answers   4- A dom.pdf
please help i will give a thumbs up please original answers 4- A dom.pdf
RyanF2PLeev2 views
Please find three agencies- one from each of the governmental groups d.pdf von RyanF2PLeev
Please find three agencies- one from each of the governmental groups d.pdfPlease find three agencies- one from each of the governmental groups d.pdf
Please find three agencies- one from each of the governmental groups d.pdf
RyanF2PLeev2 views
please follow instruction amd provide sample code- thank you Write a P.pdf von RyanF2PLeev
please follow instruction amd provide sample code- thank you Write a P.pdfplease follow instruction amd provide sample code- thank you Write a P.pdf
please follow instruction amd provide sample code- thank you Write a P.pdf
RyanF2PLeev2 views
Please fill out the chart for the nursing care plan- Please use a NAND.pdf von RyanF2PLeev
Please fill out the chart for the nursing care plan- Please use a NAND.pdfPlease fill out the chart for the nursing care plan- Please use a NAND.pdf
Please fill out the chart for the nursing care plan- Please use a NAND.pdf
RyanF2PLeev3 views
please explain the solution and each value in detail this problem is a.pdf von RyanF2PLeev
please explain the solution and each value in detail this problem is a.pdfplease explain the solution and each value in detail this problem is a.pdf
please explain the solution and each value in detail this problem is a.pdf
RyanF2PLeev2 views
Please fill the answer in the table The ssthresh value for a Taho TCP.pdf von RyanF2PLeev
Please fill the answer in the table  The ssthresh value for a Taho TCP.pdfPlease fill the answer in the table  The ssthresh value for a Taho TCP.pdf
Please fill the answer in the table The ssthresh value for a Taho TCP.pdf
RyanF2PLeev3 views
PLEASE HELP Table 1 11- Regression 2 of Table 1 identified variables.pdf von RyanF2PLeev
PLEASE HELP  Table 1 11- Regression 2 of Table 1 identified variables.pdfPLEASE HELP  Table 1 11- Regression 2 of Table 1 identified variables.pdf
PLEASE HELP Table 1 11- Regression 2 of Table 1 identified variables.pdf
RyanF2PLeev2 views
Please draw the state diagram of the NFA on paper or using a graph cre.pdf von RyanF2PLeev
Please draw the state diagram of the NFA on paper or using a graph cre.pdfPlease draw the state diagram of the NFA on paper or using a graph cre.pdf
Please draw the state diagram of the NFA on paper or using a graph cre.pdf
RyanF2PLeev2 views
Please do this for C language- Thank you for your help! In this homewo.pdf von RyanF2PLeev
Please do this for C language- Thank you for your help! In this homewo.pdfPlease do this for C language- Thank you for your help! In this homewo.pdf
Please do this for C language- Thank you for your help! In this homewo.pdf
RyanF2PLeev2 views
Please explain in detail- 3- Consider the training and validation sets.pdf von RyanF2PLeev
Please explain in detail- 3- Consider the training and validation sets.pdfPlease explain in detail- 3- Consider the training and validation sets.pdf
Please explain in detail- 3- Consider the training and validation sets.pdf
RyanF2PLeev2 views
Prepare the statement of cash flows 51-202 Accounting II Name- Chapte.pdf von RyanF2PLeev
Prepare the statement of cash flows  51-202 Accounting II Name- Chapte.pdfPrepare the statement of cash flows  51-202 Accounting II Name- Chapte.pdf
Prepare the statement of cash flows 51-202 Accounting II Name- Chapte.pdf
RyanF2PLeev2 views

Último

AI Tools for Business and Startups von
AI Tools for Business and StartupsAI Tools for Business and Startups
AI Tools for Business and StartupsSvetlin Nakov
89 views39 Folien
231112 (WR) v1 ChatGPT OEB 2023.pdf von
231112 (WR) v1  ChatGPT OEB 2023.pdf231112 (WR) v1  ChatGPT OEB 2023.pdf
231112 (WR) v1 ChatGPT OEB 2023.pdfWilfredRubens.com
137 views21 Folien
ACTIVITY BOOK key water sports.pptx von
ACTIVITY BOOK key water sports.pptxACTIVITY BOOK key water sports.pptx
ACTIVITY BOOK key water sports.pptxMar Caston Palacio
350 views4 Folien
Class 10 English notes 23-24.pptx von
Class 10 English notes 23-24.pptxClass 10 English notes 23-24.pptx
Class 10 English notes 23-24.pptxTARIQ KHAN
95 views53 Folien
CWP_23995_2013_17_11_2023_FINAL_ORDER.pdf von
CWP_23995_2013_17_11_2023_FINAL_ORDER.pdfCWP_23995_2013_17_11_2023_FINAL_ORDER.pdf
CWP_23995_2013_17_11_2023_FINAL_ORDER.pdfSukhwinderSingh895865
501 views6 Folien

Último(20)

AI Tools for Business and Startups von Svetlin Nakov
AI Tools for Business and StartupsAI Tools for Business and Startups
AI Tools for Business and Startups
Svetlin Nakov89 views
Class 10 English notes 23-24.pptx von TARIQ KHAN
Class 10 English notes 23-24.pptxClass 10 English notes 23-24.pptx
Class 10 English notes 23-24.pptx
TARIQ KHAN95 views
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively von PECB
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
PECB 457 views
Structure and Functions of Cell.pdf von Nithya Murugan
Structure and Functions of Cell.pdfStructure and Functions of Cell.pdf
Structure and Functions of Cell.pdf
Nithya Murugan317 views
Narration ppt.pptx von TARIQ KHAN
Narration  ppt.pptxNarration  ppt.pptx
Narration ppt.pptx
TARIQ KHAN110 views
Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation) von AnshulDewangan3
 Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation) Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation)
Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation)
AnshulDewangan3275 views
11.28.23 Social Capital and Social Exclusion.pptx von mary850239
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptx
mary850239112 views
7 NOVEL DRUG DELIVERY SYSTEM.pptx von Sachin Nitave
7 NOVEL DRUG DELIVERY SYSTEM.pptx7 NOVEL DRUG DELIVERY SYSTEM.pptx
7 NOVEL DRUG DELIVERY SYSTEM.pptx
Sachin Nitave56 views
DU Oral Examination Toni Santamaria von MIPLM
DU Oral Examination Toni SantamariaDU Oral Examination Toni Santamaria
DU Oral Examination Toni Santamaria
MIPLM138 views
Narration lesson plan.docx von TARIQ KHAN
Narration lesson plan.docxNarration lesson plan.docx
Narration lesson plan.docx
TARIQ KHAN99 views
American Psychological Association 7th Edition.pptx von SamiullahAfridi4
American Psychological Association  7th Edition.pptxAmerican Psychological Association  7th Edition.pptx
American Psychological Association 7th Edition.pptx
SamiullahAfridi474 views
UWP OA Week Presentation (1).pptx von Jisc
UWP OA Week Presentation (1).pptxUWP OA Week Presentation (1).pptx
UWP OA Week Presentation (1).pptx
Jisc68 views
Class 10 English lesson plans von TARIQ KHAN
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plans
TARIQ KHAN239 views

please provide whole solution in java please thank you Many entities-.pdf

  • 1. please provide whole solution in java please thank you Many entities, such as electronics and biological organisms, can be organized in a taxonmy. How would you design a system that stores the taxonomy and allow queries on the taxonmy? The goal of HW3 is to build a tree from categories of entities and answer queries on the tree. Your submission has a tree with a linked structure of tree nodes and supports (at least) the following operations: - addChild(childNode) // to maintain alphabetical/lexicographical order of the children - getChildren() - getParent() For each node, you may not assume it has a fixed or maximum number of children. We will evaluate your submission on code01.fit.edu, so you are strongly recommended to ensure your program functions properly on code01.fit.edu. To preserve invisible characters, we strongly recommend you to download, NOT copy and paste, input data files. Input: Input is from the command-line arguments for HW3.java (hw3.c) in this order: 1. filename of the data - the first line has the top category, followed by its sub-categories; each of the following lines has a category, followed by its sub-categories. 2. filename of queries, each line has one of the following queries: - DirectSupercategory category - DirectSubcategories category - AllSupercategories category - AllSubcategories category - NumberOfAllSupercategories category - NumberOfAllSubcategories category - IsSupercategory category supercategory - IsSubcategory category subcategory - ClosestCommonSupercategory category 1 category 2 You may assume categories in the queries exist in the data. Sample input files are on the course website. Output: Output goes to the standard output (screen), each line has an answer with the corresponding query: - DirectSupercategory category supercategory - DirectSubcategories category subcategory 1 subcategory 2 ... - AllSupercategories category supercategory1 supercategory 2 ... - AllSubcategories category subcategory 1 subcategory 2 ... - NumberOfAllSupercategories category count - NumberOfAllSubcategories category count - IsSupercategory category supercategory yes/no - IsSubcategory category subcategory yes/no - ClosestCommonSupercategory category 1 category 2 closestCommonSupercategory DirectSubcategories (if any) are in the alphabetical/lexicographical order. AllSubcategories (if any) are in "pre-order." AllSupercategories (if any) are in the order of supercategory, grand- supercategory, ... IsSupercategory/IsSubcategory refers to any supercategory/subcategory. ClosestCommonSupercategory (if any) is the deepest supercategory of both categories. Sample output is on the course website.