![mecennabosaaen](/avatars/1627.jpg)
mecennabosaaen
02.06.2021 •
Computers and Technology
An online news website relies on in-page advertisements to make money. Their article pages have multiple slots for advertisements, and each slot can be used for a full-size ad or multiple smaller ads. Advertisers specify their size and desired display count per day. A diagram of a webpage. Article text is shown alongside multiple advertising boxes on the page. The news site uses a scheduling algorithm to determine which advertisements to display in each slot at each time of day. The algorithm's goal is to maximize money earned while not exceeding the display count per day, so it tries out every possible combination and picks the best one. As the number of advertisers and articles increases, the news site realizes the scheduling algorithm is taking an unreasonable amount of time and costing them valuable server time. What is the most promising way that they can improve the run time of the algorithm
Solved
Show answers
More tips
- C Cities and Countries What time does the Metro open in Moscow?...
- T Travel and tourism How to Use a Compass: A Beginner s Guide...
- C Computers and Internet Porn Banner: What It Is and How to Get Rid Of It?...
- F Food and Cooking How many stages of coffee roasting are there?...
- F Food and Cooking From Latte to Espresso: Which Coffee Drink is the Most Popular on Earth?...
- F Food and Cooking Experts Name Top 5 Healthiest Teas...
- C Computers and Internet Google Search Tips and Tricks: Everything You Need to Know...
- H Health and Medicine Discover the Hidden Principles and Real Results of the Japanese Diet...
- H Health and Medicine Liver Cleansing - Rejuvenation for the Body?...
- S Style and Beauty Is Photoepilation the Solution to Unwanted Hair Forever?...
Answers on questions: Computers and Technology
- C Computers and Technology Your company experiences fluctuations in traffic patterns due to your e-commerce website support of flash sales. What feature can help your company dynamically match the...
- C Computers and Technology Write a method appendIfMissing which is passed a String s and a String e (for ending). If s doesn t already end with e, the method returns a new String which consists of...
- C Computers and Technology As described in the chapter case, losing smartphones is a common cause of data breaches. Group of answer choices True False...
- C Computers and Technology What direction would you travel to go from japan to the united states...
- C Computers and Technology Закончите предложения, вставив подходящие по смыслу существительные...
- C Computers and Technology Can somebody help me and make a code for this in PYTHON, please? I would be very thankful! Find sum of the first n even numbers.Without using formula (n*(n+1))....
- B Biology If there was a long line with 100 hooks that was fishing for one hour and it caught 16 bull sharks, what is the catch per unit effort?...
- M Mathematics Solve the equation for all values of x. ∣4x + 4 ∣- 10 = 3x...
- B Biology Please help my last question got deleted...
- M Mathematics Three consecutive even integers have a sum of 36. Find the integers....
Ответ:
Create a dynamic-sized circularly-linked list to hold a tuple of the adverts and the count. As the program runs, the sum of the counts is used to calculate the fixed advertisement time which is saved in a variable time_slot. Then a loop statement should be used to traversal the linked list continuously until the count sum is exhausted for the day.
Explanation:
A circularly-linked list is a linked list with both ends joined together. With this data structure, the continuous traversal of the list is easier and faster. A conditional statement is used in the algorithm to check and decrement the count of each advert and when all is zero or false, the program ends.
Ответ:
B
Explanation:
Comments in code are primarily used to describe what the program does, and how chunks of the code running the program help relate to what the program does. Comments in code are not primarily used for answers d & a, which is more code, since if you comment, the compiler doesn't notice the code, so it doesn't work. Comments in code are not used for c either, since it's not really needed to write that in the comments.