How to solve a seating arrangement in Airline – Part 1

As a software developer, I have been given many challenges or problems to solve and in fact, I love to get involved.

Here is problem statement:

The reputed airline named HardJet has announced that they are facing a criticism on deliberate efforts to allocate seats for their customers and more and more customer dissatisfaction fuelling to join  Hynair their biggest rivals thus HardJet has decided to reward on those who can help them to solve this puzzle.

First of all, this problem does not need any computer program or anything that generate complexity so first it should be just on paper mostly theory and general mathematics.

So my first approach was to research capacity of an aircraft and for example : according to this around 156 seats capacity. and 29 rows and each row has  2 sets of seats – 3 on each sides.  Thus, the best way to identify the problem of arrangement is to give best (optimal) arrangement positive points and  worst(minimum) arrangement negative points based on following criteria:

  • If booking has a single ticket than – window seat, aisle, or middle seat no points counted ( 0 point).
  • If booking has couple or pair (tickets) than if it has window seat or aisle seat (+1) (1window, 1middle or 1 middle 1 aisle), if same row and two aisle seat than 0. if split than –1.
  • If booking has three tickets booked than same side (+1) if same row but split in 2 (I.e. 2 aisles 1 middle) but consecutive seats then 0 otherwise again split to next row –1, if split all 3 tickets –3, if split in two groups –2.
  • If booking has four tickets than same row consecutive seats +2(however 1 windows 2 aisle 1 middle). if 2 windows and 2 middle than 1 point. if split different rows than –1, if all 4 seats are separated than –4. if two seats non consecutive than –2, any other possible non consecutive combination than  –1. 
  • If booking has five tickets than if same consecutive seats in same row +2 (2 windows, 2 middle and 1 aisle or 1 window 2 middle, 2 aisles). any split but follow couple and group of three still +1, any split non consecutive than per seat –1 , –2 , –3, –4 panelise.
  • If booking has Six tickets than if same consecutive seats in same row +3 (same row) if split to next row but same side (+2) split to next row other side (+1) any other combination with splits –2 and –4 points to consider.

Now from given rules we know that the best optimal combination is 29 bookings required each booking has 6 tickets which scores 87 (29 x 3 = 87) which I think is extreme case. But however for optimal value for each flight arrangement I am creating an algorithm which generate the optimal arrangement with calculated points and stored in the learning engine so that later best combination can be provided. I know it is quite a challenge to achieve but I think assuming that when you reach to a checkout you know that you will received best possible combination of seat, So far I haven’t add any other complexity such as let 50% seats to be filled by arrangement (which is completely different ball game).

BOOKING

Now this is just a beginning, I will keep posting this with my progress with this I know it is not that easy but with right mind-set and possibly knowledge how to build something which helpful to many. It is possible.

Airlines probed over ‘confusing’ seating policy

http://www.bbc.co.uk/news/uk-42931091

https://worldairlinenews.com/2014/06/05/easyjet-reveals-the-most-popular-seats-on-its-aircraft-and-who-picks-what-type/

https://www.seatguru.com/airlines/EasyJet_Airlines/easyJet_Airlines_Airbus_A319.php

Be a Hero. Always say, ‘I have no fear’.

Be a Hero. I have no Fear - Swami Vivekananda

My ideal my hero. My mentor.

Just words are enough to burn in full throttle of enthusiasm. I just can express further than this.

Ciao.

Wow spring clean email box

What a feeling… just used my GTD principles and spend half an hour to sparkly clean my email.

Hurrey. Time to watch TV (My treat.)

What an update….

Early this morning, when I started my both computers , I found it has been updating since morning and not finished till late afternoon even while I am writing this article.

Gosh… what an update. Really anxious and not sure whether it will work or not. So far 6 hours since morning and it’s windows fall updates.

How software developer fails in two way

Software developer we are fail

As a software developers, we fail in two ways: we build the thing wrong, or we build the wrong thing. 

– Steve Smith

I was revising my knowledge on DDD(Domain Driven Development Not Developers Developers Developers ) and how I enlighten by few of my work starting from Unit Testing to Test Driven Development to Behaviour Driven Development and incorporate with Domain Driven Development. I think knowledge and know how helped me a lot but still sometime I felt doing too much of learning is not worth until you utilise your talent and find out its application and apply in a real life not for just fun but keep stack and build better software and application and solve some great problems of actual business complexity with great enthusiasm.

How long will it take to build a Personal CV site?

Recently I have set a challenge for myself. How long will it take to build a site from scratch and deploy completely. I thought it would be nice and easy 8 hours task but apparently my estimate was dead on the spot. 

So Let me go through the time line and explain you my estimation :

Task Description Estimated Time in Hours Actual Time in Hours
Story board my CV 1.0 1.0
Build a theme 1.5 1.75
Google Analytics setup 0.5 0.25
Keyword research 0.5 0.25
Get and validate external links 0.5 0.25
Generate Animation and Mobile first Screen 1.00 1.00
Get Feedback 1.00 0.75
Signup recaptcha and configure 0.5 0.5
Deploy on server 1.0 0.75
Release and write article 0.50 1.00

Now what is the proof.

Let me show you my proof.  Just visit the site and give your feedback. Love to hear that. Just feeling Awesome…. and awesomeness…….

Ravi_Lodhiya_CV_Resume_-_2018-01-09_20.59.14

ONE OF THE BEST STORIES I’VE EVER HEARD!

 

ONE OF THE BEST STORIES I’VE EVER HEARD!

As she stood in front of her 5th grade class on the very first day of school, she  told the children an untruth. Like most teachers, she looked at her students and said that she loved them all the same. However, that was impossible, because there in the front row, slumped in his seat, was a little boy named Teddy Stoddard.

Mrs Thompson had watched Teddy the year before and noticed that he did not play well with the other children, that his clothes were messy and that he constantly needed a bath. In addition, Teddy could be unpleasant. It got to the point where Mrs Thompson would actually take delight in marking his papers with a broad red pen, making bold X’s and then putting a big ‘F’ at the top of his papers.

At the school where Mrs Thompson taught, she was required to review each child’s past records and she put Teddy’s off until last. However, when she reviewed his file, she was in for a surprise.

Teddy’s first grade teacher wrote, ‘Teddy is a bright child with a ready laugh. He does his work neatly and has good manners… he is a joy to be around..’
His second grade teacher wrote, ‘Teddy is an excellent student, well liked by his classmates, but he is troubled because his mother has a terminal illness and life at home must be a struggle.’

His third grade teacher wrote, ‘His mother’s death has been hard on him. He tries to do his best, but his father doesn’t show much interest, and his home life will soon affect him if some steps aren’t taken.’

Teddy’s fourth grade teacher wrote, ‘Teddy is withdrawn and do isn’t show much interest in school. He doesn’t have many friends and he sometimes sleeps in class.’

By now, Mrs Thompson realized the problem and she was ashamed of herself. She felt even worse when her students brought her Christmas presents, wrapped in beautiful ribbons and bright paper, except for Teddy’s..

His present was clumsily wrapped in the heavy, brown paper that he got from a grocery bag. Mrs Thompson took pains to open it in the middle of the other presents. Some of the children started to laugh when she found a rhinestone bracelet with some of the stones missing, and a bottle that was one-quarter full of perfume..

But she stifled the children’s laughter when she exclaimed how pretty the bracelet was, putting it on, and dabbing some of the perfume on her wrist. Teddy Stoddard stayed after school that day just long enough to say, ‘Mrs Thompson, today you smelled just like my Mom used to.’

After the children left, she cried for at least an hour. On that very day, she quit teaching reading, writing and arithmetic. Instead, she began to teach children. Mrs Thompson paid particular attention to Teddy. As she worked with him, his mind seemed to come alive. The more she encouraged him, the faster he responded. By the end of the year, Teddy had become one of the smartest children in the class and, despite her lie that she would love all the children the same, Teddy became one of her ‘teacher’s pets..’

A year later, she found a note under her door, from Teddy, telling her that she was the best teacher he ever had in his whole life.

Six years went by before she got another note from Teddy. He then wrote that he had finished high school, third in his class, and she was still the best teacher he ever had in life.

Four years after that, she got another letter, saying that while things had been tough at times, he’d stayed in school, had stuck w it it, and would soon graduate from college with the highest of honours. He assured Mrs Thompson that she was still the best and favourite teacher he had ever had in his whole life.

Then four more years passed and yet another letter came. This time he explained that after he got his bachelor’s degree, he decided to go a little further. The letter explained that she was still the best and favourite teacher he ever had. But now his name was a little longer…. The letter was signed, Theodore F. Stoddard, MD.

The story does not end there. You see, there was yet another letter that spring. Teddy said he had met this girl and was going to be married. He explained that his father had died a couple of years ago and he was wondering if Mrs Thompson might agree to sit at the wedding in the place that was usually reserved for the mother of the groom. Of course, Mrs Thompson did. And guess what? She wore that bracelet, the one with several rhinestones missing. Moreover, she made sure she was wearing the perfume that Teddy remembered his mother wearing on their last Christmas together.
They hugged each other, and Rd. Stoddard whispered in Mrs Thompson’s ear, ‘Thank you Mrs Thompson for believing in me. Thank you so much for making me feel important and showing me that I could make a difference.’

Mrs Thompson, with tears in her eyes, whispered back.. She said, ‘Teddy, you have it all wrong. You were the one who taught me that I could make a difference. I didn’t know how to teach until I met you.’

(For you that don’t know, Teddy Stoddard is the Dr at Iowa Methodist in Des Moines that has the Stoddard Cancer Wing.)

Warm someone’s heart today. . . pass this along. I love this story so very much, I cry every time I read it. Just try to make a difference in someone’s life today? tomorrow? just ‘do it’.

‘Random acts of kindness, I think they call it!
Believe in Angels, then return the favour’

Reading while searching new opportunities

My reading list for January 2018.

Looks extreme but plausible.

Let me do it.

Stone Cold Steve Austin 3:16

“Stone Cold” Steve Austin 3:16

This toy reminds me my childhood hero, Stone cold Steve Austin 3:16. I still mesmerized by the fact how awesome it was to watch him on a silver screen, almost every one of us were crazy about him. Yet we were childish but watching 3:16 Legacy just unimaginable.

Thank you for such a memory lane.

Here it’s awesome entranced.