Question
Question 2: Suppose your system is storing market data to analyze and found under-valued or over-valued stocks to make a buying or selling decision, and
Question 2:
Suppose your system is storing market data to analyze and found under-valued or over-valued stocks to make a buying or selling decision, and you need to store only recent market data for that purpose. Now this gives us an idea, that as soon as we receive an update, we should discard old market data, even if its not yet processed and keep the system concurrency and balancing. suppose the undervalued stock numbers are:45,30,12,50,42,19 and over valued stock number are:2,3,6,82,60,14. And the data elements that should be updated are 50,30,82 with16,32, and 68 respectively.
Understand the above mention scenario, which non-linear data structure is used for it. Also perform some basic operation of that data structure with old as well as updated data elements.
language: data structure and algorithm in C++ language
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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