Geeks Talk

Prepare for your Next Interview




Advertisement

This is a discussion on Advertisement within the Challenging puzzles forums, part of the Brain Gym category; Hello, I got this puzzle asked to me in a recent interview in an MNC company. Suppose you are working in a tv channel and your job is to schedule ...


Go Back   Geeks Talk > Brain Gym > Challenging puzzles

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-28-2007
Expert Member
 
Join Date: Jan 2007
Location: Pune
Posts: 279
Thanks: 6
Thanked 4 Times in 4 Posts
smart_coder is on a distinguished road
Advertisement

Hello,
I got this puzzle asked to me in a recent interview in an MNC company.
Suppose you are working in a tv channel and your job is to schedule the advertisements in between the TV program breaks.
Now there are 2 types of advertisements: Advt A and Advt B.
You have to show Advt A 6 times and Advt B 2 times in 30 minutes slot.
Suppose both advt are 1 minute each.
Now you have to schedule these advt such that the advt of same kind are as far as possible. No more clues and no more clarification I can provide more than what I have given because this is what I was asked exactly.
And this is the problem the company is working on and trying to find an algorith for this.
__________________
[B][COLOR="Blue"]Anyone who thinks he knows all the answers, must not be up-to-date on the questions[/COLOR][/B]
[B]Anshul[/B]:)
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-28-2007
Expert Member
 
Join Date: Jun 2006
Location: India
Posts: 411
Thanks: 15
Thanked 33 Times in 25 Posts
jamesravid is on a distinguished road
Re: Advertisement

I have a question here,

How many advertisement breaks would be there?
__________________
Cheers,
:) James:)
Reply With Quote
  #3 (permalink)  
Old 05-28-2007
Expert Member
 
Join Date: Jan 2007
Location: Pune
Posts: 279
Thanks: 6
Thanked 4 Times in 4 Posts
smart_coder is on a distinguished road
Re: Advertisement

only 8 breaks. you have to schedule six A advt and two B advt in 30 minutes.
__________________
[B][COLOR="Blue"]Anyone who thinks he knows all the answers, must not be up-to-date on the questions[/COLOR][/B]
[B]Anshul[/B]:)
Reply With Quote
  #4 (permalink)  
Old 05-28-2007
Expert Member
 
Join Date: Jun 2006
Location: India
Posts: 411
Thanks: 15
Thanked 33 Times in 25 Posts
jamesravid is on a distinguished road
Re: Advertisement

I prefer to go for only 6 breaks,
Here is my Answer,
Let us say the program starts at 8 AM and ends at 8:30 AM

8:00:00 - 01:00 Add A
01:00 - 02:00 Add B

8:05:48 - 06:48 Add A

8:11:36 - 12:36 Add A

8:16:24 - 17:24 Add A

8:22:12 - 23:12 Add A

8:28:00 - 29:00 Add B
29:00 - 30:00 Add A

There are 26 mins between two B Advertisements.
and 4 mins and 48 secs between each A Advertisements.

Awaiting you comments
__________________
Cheers,
:) James:)
Reply With Quote
The Following User Says Thank You to jamesravid For This Useful Post:
  #5 (permalink)  
Old 05-29-2007
Expert Member
 
Join Date: Jan 2007
Location: Pune
Posts: 279
Thanks: 6
Thanked 4 Times in 4 Posts
smart_coder is on a distinguished road
Re: Advertisement

Hi james,
Look I dont have the correct solution with me but I would like to know that how you came up with this solution and is this the optimum solution?
__________________
[B][COLOR="Blue"]Anyone who thinks he knows all the answers, must not be up-to-date on the questions[/COLOR][/B]
[B]Anshul[/B]:)
Reply With Quote
  #6 (permalink)  
Old 06-23-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 864
Thanks: 12
Thanked 81 Times in 65 Posts
jainbrijesh is on a distinguished road
Re: Advertisement

Quote:
Originally Posted by jamesravid View Post
I prefer to go for only 6 breaks,
Here is my Answer,
Let us say the program starts at 8 AM and ends at 8:30 AM

8:00:00 - 01:00 Add A
01:00 - 02:00 Add B

8:05:48 - 06:48 Add A

8:11:36 - 12:36 Add A

8:16:24 - 17:24 Add A


8:22:12 - 23:12 Add A

8:28:00 - 29:00 Add B
29:00 - 30:00 Add A

There are 26 mins between two B Advertisements.
and 4 mins and 48 secs between each A Advertisements.

Awaiting you comments


What's about this optimization?

8:00:00 - 01:00 Add A


8:05:48 - 06:48 Add A
06:48 - 07:48 Add B

8:11:36 - 12:36 Add A

8:16:24 - 17:24 Add A
18:24 - 19:24 Add B


8:22:12 - 23:12 Add A

29:00 - 30:00 Add A

for better user experience.Add "b" should in b/w add"A", add "A" should not be in every break continuously?
__________________
Brijesh Jain
brijesh.tester@yahoo.co.in
http://softwaretestingexpertise.blogspot.com

Last edited by jainbrijesh : 06-23-2007 at 07:47 AM.
Reply With Quote
  #7 (permalink)  
Old 1 Week Ago
Junior Member
 
Join Date: Jul 2008
Location: Thane
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
vasudeo007 is on a distinguished road
Re: Advertisement

There are few things I would like to speak about this puzzle.

First, the puzzle clearly states that two ads of the same type should be as far as possible.
So this clearly means that 1st B type ad should be before program begins and last B type ad should be when program ends.

Secondly, the rest of the ads should be kept at similar distance.

Thirdly, 1st A type ad can be at the beginning along with 1st B type of ad.

Fourthly, last A type ad should be placed along with last B type ad after program ends.

The remaining 4 A type ads can be scattered in between.
Reply With Quote
Reply

  Geeks Talk > Brain Gym > Challenging puzzles


Thread Tools
Display Modes



All times are GMT -4. The time now is 06:15 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved