I'm interested in creating a digital personal assistant similar to Alexa and Siri, which can efficiently manage schedules. Specifically, I want to design a tool in Java that allows users to find events during a certain time period. This tool should also enable users to add and cancel events as their schedules change. To achieve this, I plan to use a SkipListMap class with specific operations (get, put, remove, subMap) and a DoublyLinkedList class. Additionally, I'll use the FakeRandomHeight class for debugging and testing. Could you provide guidance on how to approach this project, especially in terms of implementing the SkipListMap class and managing event data efficiently? Sample Input:  AddEvent 101910 Breakfast AddEvent 101913 Lunch AddEvent 101918 Dinner GetEvent 101914 AddEvent 101911 Data Structures AddEvent 102007 Exercise PrintSkipList AddEvent 101915 Homework CancelEvent 102007 AddEvent 102013 Relax AddEvent 102011 Read a Book GetEvent 101915 AddEvent 101914 Call Mom PrintSkipList   I would like the time to be in integer where it is in MMDDHH format and date is in MMDD format (MM is 01-12, DD is 01-31, and HH is 00-23). Sample Output:  AddEvent 101910 Breakfast AddEvent 101913 Lunch AddEvent 101918 Dinner GetEvent 101914 none AddEvent 101911 Data Structures AddEvent 102007 Exercise PrintSkipList (S3) empty (S2) 101911:Data Structures (S1) 101911:Data Structures 101913:Lunch (S0) 101910:Breakfast 101911:Data Structures 101913:Lunch 101918:Dinner 102007:Exercise AddEvent 101915 Homework CancelEvent 102007 Exercise AddEvent 102013 Relax AddEvent 102011 Read a Book GetEvent 101915 Homework AddEvent 101914 Call Mom PrintSkipList (S4) empty (S3) 102011:Read a Book (S2) 101911:Data Structures 102011:Read a Book (S1) 101911:Data Structures 101915:Homework 101918:Lunch 102011:Read a Book (S0) 101910:Breakfast 101911:Data Structures 101913:Lunch 101914:Call Mom 101915:Homework 101918:Dinner 102011:Read a Book 102013:Relax

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

I'm interested in creating a digital personal assistant similar to Alexa and Siri, which can efficiently manage schedules. Specifically, I want to design a tool in Java that allows users to find events during a certain time period. This tool should also enable users to add and cancel events as their schedules change. To achieve this, I plan to use a SkipListMap class with specific operations (get, put, remove, subMap) and a DoublyLinkedList class. Additionally, I'll use the FakeRandomHeight class for debugging and testing.

Could you provide guidance on how to approach this project, especially in terms of implementing the SkipListMap class and managing event data efficiently?

Sample Input: 

AddEvent 101910 Breakfast
AddEvent 101913 Lunch
AddEvent 101918 Dinner
GetEvent 101914
AddEvent 101911 Data Structures
AddEvent 102007 Exercise
PrintSkipList
AddEvent 101915 Homework
CancelEvent 102007
AddEvent 102013 Relax
AddEvent 102011 Read a Book
GetEvent 101915
AddEvent 101914 Call Mom
PrintSkipList
 
I would like the time to be in integer where it is in MMDDHH format and date is in MMDD format (MM is 01-12, DD is 01-31, and HH is
00-23).
Sample Output: 
AddEvent 101910 Breakfast
AddEvent 101913 Lunch
AddEvent 101918 Dinner
GetEvent 101914 none
AddEvent 101911 Data Structures
AddEvent 102007 Exercise
PrintSkipList
(S3) empty
(S2) 101911:Data Structures
(S1) 101911:Data Structures 101913:Lunch
(S0) 101910:Breakfast 101911:Data Structures 101913:Lunch 101918:Dinner
102007:Exercise
AddEvent 101915 Homework
CancelEvent 102007 Exercise
AddEvent 102013 Relax
AddEvent 102011 Read a Book
GetEvent 101915 Homework
AddEvent 101914 Call Mom
PrintSkipList
(S4) empty
(S3) 102011:Read a Book
(S2) 101911:Data Structures 102011:Read a Book
(S1) 101911:Data Structures 101915:Homework 101918:Lunch 102011:Read a
Book
(S0) 101910:Breakfast 101911:Data Structures 101913:Lunch 101914:Call Mom
101915:Homework 101918:Dinner 102011:Read a Book 102013:Relax
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Concept of Threads
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education