SlideShare a Scribd company logo
Assignment 5.1 
Heads On a Roll 
Introduction: 
 
Many a times a complex problem becomes easier to solve if you have the                           
appropriate data structure at hand. More so when the input size involved is very large.                             
Skip List is one such simple data structure which will help you efficiently solve problems                             
where ordering is required or dictionaries are required. 
 
Description: 
 
Given multiple skip lists containing the details of students enrolled in different                       
subjects and a master list (containing all the students’ details), you need to provide                           
answers to different queries (described in later sections), display the number of                       
comparisons taken for the same and produce the trace for the path taken as a graphviz                               
DOT File. 
 
Each student will be represented by a unique ID (key), where each circled part of the ID                                 
represents different entities about the student,  which is described as follows: 
 
 
 
 
Degree Type: 1 ­ B.Tech, 2 ­ M.Tech, 3 ­ PhD 
Year number: 1 to 5 
Department: Between 01 and 09 
Enrollment number: Between 01 and 99  
 
Each of the above mentioned entity will represent a height in the skip list in descending                               
order. Whenever there is a change in the value of an entity, then the student is made                                 
the ‘head’, by having height’s till the entity’s level (from the bottommost level to entity’s                             
height). For example, in the given figure, student with ID “110101” represents the ​first                           
student of B.Tech, the ​first student of 1st year,the ​first student of 1st department ​in                             
the given list​, and hence the height will be 4. Similarly, ID “120101” is a B.Tech                               
student, the ​first student ​of 2nd Year and ​first student ​of 1st department ​in the given                               
list and will have height as 3. Further student with ID “110201” represent a student of                               
B.Tech 1st year and the first student of 2nd department ​in the given list​, and hence                               
the height will be 2. Other students, which do not represent as the first student of any                                 
entity will have height 1. 
 
NOTE: ​It is NOT necessary that the first student of any degree, any branch or any                               
department will have enrollment number as 01. For example, ID “110101” may not have                           
been enrolled in Algorithms subject. In essence if there is change in an entity value from                               
the previous one, then node for the given ID will have pointers till the level of the                                 
particular entity. Please refer the sample input file provided in moodle, where the height                           
is specified. 
 
Master List: 
The master list contains all the students from different degrees and years and                         
departments.  
 
Subject­wise Lists: 
There are two subject­wise lists namely Algorithms list and Information Retrieval                     
(IR) list. These lists will only contain the students enrolled in the respective subject. 
 
 
Task: 
Using the above skip lists, answer the following queries: 
 
Q1. Find all the B.Tech 4th year students who are in the 2nd and 3rd department. 
Q2. Find all the students who are enrolled in Algorithms but not in IR and is a student of                                     
3rd, 4th or 5th Department  
Q3. Find the number of students who have taken both Algorithms and IR. 
Q4.  Find the number of students who have taken either Algorithms or IR. 
Deliverables 
You will submit your C/C++ program along with the makefile, doxy file, DOT file                           
traces (4, one for each query with the ​trace line being red in colour) as a single                                 
rollno_a5­1.tar.gz file in the moodle submission link. You may print the number of                         
comparisons in the screen, after each run. It is mandatory that your code should follow                             
proper indentation and commenting style. There will be deductions in the awarded                       
marks, if you fail to do so. If you are using C++, the use of STL is not permitted. 
 

More Related Content

What's hot

C# Value Data Types and Reference Data Types
C# Value Data Types and Reference Data TypesC# Value Data Types and Reference Data Types
C# Value Data Types and Reference Data Types
Micheal Ogundero
 
Audit
AuditAudit
Audit
rohit1221
 
Data types in c language
Data types in c languageData types in c language
Data types in c language
HarihamShiwani
 
Entity Relationship Diagram part9
Entity Relationship Diagram part9Entity Relationship Diagram part9
Entity Relationship Diagram part9
DrMohammed Qassim
 
Erroranalysispresentation 120521215028-phpapp01
Erroranalysispresentation 120521215028-phpapp01Erroranalysispresentation 120521215028-phpapp01
Erroranalysispresentation 120521215028-phpapp01
loyola college
 
Primary Key & Foreign Key part10
Primary Key & Foreign Key part10Primary Key & Foreign Key part10
Primary Key & Foreign Key part10
DrMohammed Qassim
 
Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...
Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...
Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...
Zainul Sayed
 
Syllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU UniversitySyllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU UniversityRavi Shairaywal
 
Engineering college PPT
Engineering college PPTEngineering college PPT
Engineering college PPT
TheTrojan
 
Frequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answersFrequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answers
nishajj
 
Hema wt (1)
Hema wt (1)Hema wt (1)
Hema wt (1)
SangeethaSasi1
 
AP Computer Science Test Prep Part 1 - Introduction to java Programming
AP Computer Science Test Prep Part 1 - Introduction to java ProgrammingAP Computer Science Test Prep Part 1 - Introduction to java Programming
AP Computer Science Test Prep Part 1 - Introduction to java Programming
NR Computer Learning Center
 
Word processing
Word processingWord processing
Word processing
Prof. Dr. K. Adisesha
 

What's hot (19)

C# Value Data Types and Reference Data Types
C# Value Data Types and Reference Data TypesC# Value Data Types and Reference Data Types
C# Value Data Types and Reference Data Types
 
Audit
AuditAudit
Audit
 
Data types in c language
Data types in c languageData types in c language
Data types in c language
 
Linux IV - PERL
Linux IV - PERLLinux IV - PERL
Linux IV - PERL
 
Entity Relationship Diagram part9
Entity Relationship Diagram part9Entity Relationship Diagram part9
Entity Relationship Diagram part9
 
Resume
ResumeResume
Resume
 
Lec9
Lec9Lec9
Lec9
 
Erroranalysispresentation 120521215028-phpapp01
Erroranalysispresentation 120521215028-phpapp01Erroranalysispresentation 120521215028-phpapp01
Erroranalysispresentation 120521215028-phpapp01
 
Primary Key & Foreign Key part10
Primary Key & Foreign Key part10Primary Key & Foreign Key part10
Primary Key & Foreign Key part10
 
Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...
Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...
Intelligent Hiring with Resume Parser and Ranking using Natural Language Proc...
 
Resume parser
Resume parserResume parser
Resume parser
 
Syllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU UniversitySyllabus of BCA Second Year JAMMU University
Syllabus of BCA Second Year JAMMU University
 
Engineering college PPT
Engineering college PPTEngineering college PPT
Engineering college PPT
 
Frequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answersFrequently asked tcs technical interview questions and answers
Frequently asked tcs technical interview questions and answers
 
Data type
Data typeData type
Data type
 
Hema wt (1)
Hema wt (1)Hema wt (1)
Hema wt (1)
 
AP Computer Science Test Prep Part 1 - Introduction to java Programming
AP Computer Science Test Prep Part 1 - Introduction to java ProgrammingAP Computer Science Test Prep Part 1 - Introduction to java Programming
AP Computer Science Test Prep Part 1 - Introduction to java Programming
 
Word processing
Word processingWord processing
Word processing
 
Moran Navon CV-
Moran Navon CV-Moran Navon CV-
Moran Navon CV-
 

More from Amrith Krishna

Unsupervised program synthesis
Unsupervised program synthesisUnsupervised program synthesis
Unsupervised program synthesis
Amrith Krishna
 
Analyzing Stack Overflow - Problem
Analyzing Stack Overflow - ProblemAnalyzing Stack Overflow - Problem
Analyzing Stack Overflow - Problem
Amrith Krishna
 
Asterix and the Maagic Potion - Suffix tree problem
Asterix and the Maagic Potion - Suffix tree problemAsterix and the Maagic Potion - Suffix tree problem
Asterix and the Maagic Potion - Suffix tree problem
Amrith Krishna
 
Roller Coaster Problem - OS
Roller Coaster Problem  - OSRoller Coaster Problem  - OS
Roller Coaster Problem - OS
Amrith Krishna
 
File Watcher - Lab Assignment
File Watcher - Lab AssignmentFile Watcher - Lab Assignment
File Watcher - Lab Assignment
Amrith Krishna
 
R - Eigen vector centrality with product reviews
R - Eigen vector centrality with product reviewsR - Eigen vector centrality with product reviews
R - Eigen vector centrality with product reviews
Amrith Krishna
 
Skipl List implementation - Part 1
Skipl List implementation - Part 1Skipl List implementation - Part 1
Skipl List implementation - Part 1
Amrith Krishna
 
Maach-Dal-Bhaat Problem
Maach-Dal-Bhaat ProblemMaach-Dal-Bhaat Problem
Maach-Dal-Bhaat Problem
Amrith Krishna
 
QGene Quiz 2016
QGene Quiz 2016QGene Quiz 2016
QGene Quiz 2016
Amrith Krishna
 
Named Entity recognition in Sanskrit
Named Entity recognition in SanskritNamed Entity recognition in Sanskrit
Named Entity recognition in Sanskrit
Amrith Krishna
 
Astra word Segmentation
Astra word SegmentationAstra word Segmentation
Astra word Segmentation
Amrith Krishna
 
Segmentation in Sanskrit texts
Segmentation in Sanskrit textsSegmentation in Sanskrit texts
Segmentation in Sanskrit texts
Amrith Krishna
 
ShutApp
ShutAppShutApp
Ferosa - Insights
Ferosa - InsightsFerosa - Insights
Ferosa - Insights
Amrith Krishna
 
Taddhita Generation
Taddhita GenerationTaddhita Generation
Taddhita Generation
Amrith Krishna
 
Windows Architecture
Windows ArchitectureWindows Architecture
Windows Architecture
Amrith Krishna
 

More from Amrith Krishna (16)

Unsupervised program synthesis
Unsupervised program synthesisUnsupervised program synthesis
Unsupervised program synthesis
 
Analyzing Stack Overflow - Problem
Analyzing Stack Overflow - ProblemAnalyzing Stack Overflow - Problem
Analyzing Stack Overflow - Problem
 
Asterix and the Maagic Potion - Suffix tree problem
Asterix and the Maagic Potion - Suffix tree problemAsterix and the Maagic Potion - Suffix tree problem
Asterix and the Maagic Potion - Suffix tree problem
 
Roller Coaster Problem - OS
Roller Coaster Problem  - OSRoller Coaster Problem  - OS
Roller Coaster Problem - OS
 
File Watcher - Lab Assignment
File Watcher - Lab AssignmentFile Watcher - Lab Assignment
File Watcher - Lab Assignment
 
R - Eigen vector centrality with product reviews
R - Eigen vector centrality with product reviewsR - Eigen vector centrality with product reviews
R - Eigen vector centrality with product reviews
 
Skipl List implementation - Part 1
Skipl List implementation - Part 1Skipl List implementation - Part 1
Skipl List implementation - Part 1
 
Maach-Dal-Bhaat Problem
Maach-Dal-Bhaat ProblemMaach-Dal-Bhaat Problem
Maach-Dal-Bhaat Problem
 
QGene Quiz 2016
QGene Quiz 2016QGene Quiz 2016
QGene Quiz 2016
 
Named Entity recognition in Sanskrit
Named Entity recognition in SanskritNamed Entity recognition in Sanskrit
Named Entity recognition in Sanskrit
 
Astra word Segmentation
Astra word SegmentationAstra word Segmentation
Astra word Segmentation
 
Segmentation in Sanskrit texts
Segmentation in Sanskrit textsSegmentation in Sanskrit texts
Segmentation in Sanskrit texts
 
ShutApp
ShutAppShutApp
ShutApp
 
Ferosa - Insights
Ferosa - InsightsFerosa - Insights
Ferosa - Insights
 
Taddhita Generation
Taddhita GenerationTaddhita Generation
Taddhita Generation
 
Windows Architecture
Windows ArchitectureWindows Architecture
Windows Architecture
 

Recently uploaded

JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 

Skipl List implementation - Part 2

  • 1. Assignment 5.1  Heads On a Roll  Introduction:    Many a times a complex problem becomes easier to solve if you have the                            appropriate data structure at hand. More so when the input size involved is very large.                              Skip List is one such simple data structure which will help you efficiently solve problems                              where ordering is required or dictionaries are required.    Description:    Given multiple skip lists containing the details of students enrolled in different                        subjects and a master list (containing all the students’ details), you need to provide                            answers to different queries (described in later sections), display the number of                        comparisons taken for the same and produce the trace for the path taken as a graphviz                                DOT File.    Each student will be represented by a unique ID (key), where each circled part of the ID                                  represents different entities about the student,  which is described as follows:          Degree Type: 1 ­ B.Tech, 2 ­ M.Tech, 3 ­ PhD  Year number: 1 to 5  Department: Between 01 and 09  Enrollment number: Between 01 and 99     Each of the above mentioned entity will represent a height in the skip list in descending                                order. Whenever there is a change in the value of an entity, then the student is made                                 
  • 2. the ‘head’, by having height’s till the entity’s level (from the bottommost level to entity’s                              height). For example, in the given figure, student with ID “110101” represents the ​first                            student of B.Tech, the ​first student of 1st year,the ​first student of 1st department ​in                              the given list​, and hence the height will be 4. Similarly, ID “120101” is a B.Tech                                student, the ​first student ​of 2nd Year and ​first student ​of 1st department ​in the given                                list and will have height as 3. Further student with ID “110201” represent a student of                                B.Tech 1st year and the first student of 2nd department ​in the given list​, and hence                                the height will be 2. Other students, which do not represent as the first student of any                                  entity will have height 1.    NOTE: ​It is NOT necessary that the first student of any degree, any branch or any                                department will have enrollment number as 01. For example, ID “110101” may not have                            been enrolled in Algorithms subject. In essence if there is change in an entity value from                                the previous one, then node for the given ID will have pointers till the level of the                                  particular entity. Please refer the sample input file provided in moodle, where the height                            is specified.    Master List:  The master list contains all the students from different degrees and years and                          departments.     Subject­wise Lists:  There are two subject­wise lists namely Algorithms list and Information Retrieval                      (IR) list. These lists will only contain the students enrolled in the respective subject.      Task:  Using the above skip lists, answer the following queries:    Q1. Find all the B.Tech 4th year students who are in the 2nd and 3rd department.  Q2. Find all the students who are enrolled in Algorithms but not in IR and is a student of                                      3rd, 4th or 5th Department   Q3. Find the number of students who have taken both Algorithms and IR.  Q4.  Find the number of students who have taken either Algorithms or IR. 
  • 3. Deliverables  You will submit your C/C++ program along with the makefile, doxy file, DOT file                            traces (4, one for each query with the ​trace line being red in colour) as a single                                  rollno_a5­1.tar.gz file in the moodle submission link. You may print the number of                          comparisons in the screen, after each run. It is mandatory that your code should follow                              proper indentation and commenting style. There will be deductions in the awarded                        marks, if you fail to do so. If you are using C++, the use of STL is not permitted.