Sunday, December 28, 2014

Pattern Recognition- 11

Find the next two numbers in the series.

5, 4, 8, 11, 18, 28, _,_,.............


Answer

Tn=(Tn-1 +Tn-2 -1)
4=5+0(actually there is nothing)-1=4
8=4+5-1=8
11=8+4-1
18=11+8-1
28=18+11-1


Next two numbers will be
(28+18-1)=45
(45+28-1)=72

5,4,8,11,18,28,45,72,.......

Monday, December 22, 2014

Pattern Recognition-10

Find the next two figures in the series.


ADE, ADF, ADH, AEA ,AEE ,_,_,..........


A    B    C    D    E    F    G    H    I      J    K        L    M    N    O      P    Q    R    S      T    U      V        W    X    Y        Z
1    2    3    4    5      6    7    8    9    10  11      12    13    14  15    16    17    18  19    20    21    22      23    24    25    26


ADE, ADF, ADH, AEA ,AEE ,_,_,..........
145,  146,  148,  151,  155,  160, 166 ,............
      +1    +2    +3    +4    +5      +6

160- AF
166- AFF

Next two patterns will be  AF,AFF

Lead with out a title

 One week ago I did a speech (CC2) in toastmasters session where I got this comment from my evaluator "Your speech content was rich. You must have done a lot of research."  Well,actually I did not do that much of research for this speech as most of the points were taken from the book "The Leader who had no title" by Robin sharma. Definitely the author must have done lot of research before writing this book. The book has so many lessons but toastmasters speech is limited to 5-7 mins hence I was able to pick only a few important points for the presentation and at times I have presented things as it is there in the book. My intention was/is not to take any credit for my work but to pass the message in an effective way.

I would like share the wealth I found with you all. :)

Here it is.

Recently I read a story about mother Tresa in an article.
There was a time when a new Sister that joined the missionary discovered a dirty toilet and hid away horrified in disgust. At the same time Mother Teresa happened by, rolled up her sleeves and quickly cleaned the toilet, not noticing the Sister. Mother Teresa then went on with her business. The shamed Sister never forgot the lesson.

Yes.Leadership is more about being an inspiration; lead by example.

We all are capable of being a leader.  Today my topic is “Lead without a title”. The fabulous thing about lead without a title is no one can take the power from us anytime but this is not the case for title power. Ideally we do not need be a CEO/manager/team leader to lead people around us or to be an inspiration in our field. Leadership is very less about ordering or commanding people to do things but more about taking responsibility, pushing excellence in whatever we do and inspire others to do the same and showing enthusiasm in everything we say and everything we do.

The ways or lessons am going to talk about were mostly taught by some wonderful people around me especially there is a book called “The Leader who had no title” written by the world famous author and leadership guru Robin Sharma(One of my favorite authors). I’m going to share what I've learnt with you all. Hope you are ready for the learning session.


  • Lead your self – We must be able inspire ourselves, motivate to do some great work and we must have some disciplines on our own. If we are not doing our best, we cannot bring out the best in others.

  • Do your work extraordinarily well- No matter which we field we are in, every individual matters, every one’s contribution makes a difference in the world. There is a saying from Martin Luther king Jr
     "If a man is called street sweeper he should sweep as Michelangelo painted or Beethoven composed music. "
Perfection or the quality of the work is the most important thing.If normal people put 80% or 90% or may be 100% effort in their work, leaders put 130% effort; they go an extra mile; when people look at their work they will be just amazed. If we take this company, each and every one of our performance has an impact on the overall performance of the company. If everyone understands this and take some steps towards excellence definitely the company will soar high. Is not it?

  • Give kudos- We humans yearn for appreciation from the smallest to big achievements that we make.We must appreciate the good things in people as much as possible.  Say congrats even for a smallest achievement. That encourages people and it makes them put more effort and brings out a better result next time.Leaders understand this well and they deliberately look for opportunities to find good things and appreciate them.
“Catch them when they are good” is a really good motivation tactic.

  • Leadership language- Words have magical power. Do you believe that? Your words can shed some light on people or they can destroy them. Our tongue, it doesn't have any bones but it has the ability to break people into pieces.The choice is up to us. Leaders understand this well and use the words that uplift others.

Let say some one in the team is not doing well. How can we put that? We normally say that “You are not doing a good job, and the things better improve” The same thing we can put it in a better way
“ I appreciate that you are putting a lot of effort and I would like to share some of the opportunities I have for you to take your performance to the next level” .The same thing right? wording/language is the only difference. Let us use words to encourage people, motivate them not to tear them down.Leaders are people builders.


What we give out the good or bad will come back to us multiplied.Let's make sure that we send out good only so we will receive good only. Let’s give the best of us to the world and we shall reap the enormous rewards life gives us back.

The definition of happiness is the full use of your powers, along with the line of excellence.- Jon F.Kennedy

Pattern Recognition-9

Find the next two numbers in the series.

752, 1495, 21138, 281711, _, _, ...........


Answer

There are three patterns going on  in this series.

752, 1495, 21138, 281711, _, _, ...........

Next two numbers will be

352114   -------->   352114
422517  --------->   422517 

Sunday, November 30, 2014

Pattern Recognition -8

Find the next two numbers in the series.

5,7,1,1,11,19,2,3,35,67,5,8,_,_

Answer

5,7,1,1,11,19,2,3,35,67,5,8,131,259,........


It is a combination of two patterns
5,7,_,_,11,19,_,_,35,67,.......

_,_,1,1, _,  _, 2, 3, _, _,....... This is fibonacci series

Next two numbers will be taken from the first pattern.

7=5+2
11=7+4
19=11+8
35=19+16
67=35+32
 

next two numbers will be  67+64=131
                                      131+128=259

Pattern Recognition-7

Find the next two numbers in the series.

10,1,12,3,16,7,24,6,_,_,...........


Answer

10,1,12,3,16,7,24,6,40,4,...........

Again a combination of two patterns.

10,_,12,_,16,_,24

12=10+2
16=12+4
24=16+8

_,1,_,3,_,7,_,6

Take the previous number and add up all the numbers in it.

1=  1+0  (10)
3=1+2 (12)
7=1+6(16)
6=2+4(24)


Next numbers

first one from the first pattern   24+16=40

second number 4+0=4

Wednesday, November 26, 2014

One Team One Goal





Have you heard anywhere that a reputed software company hires a person who has experience only in the restaurant world?
Yes.That wonder has happened. Does not that sound crazy? Is the recruitment manager a crazy fellow? Well, let us go back in time.

It is a quite famous and middle level restaurant at the heart of the city that is doing a fairly good service to the society as well as to its internal people. The owner of the restaurant is a courageous and greedy personality who wants take the restaurant to the next level. As he wanted to make sure to deliver quality and tasteful food to the customers, unlike other restaurants he recruited a food quality assurance person as well. And since the current manager resigning from the work, the owner recruited a new employee for the very same position.

The new restaurant manager is an enthusiastic and enormously positive person who committed to take the performance and customer impact of the restaurant to a new level. He found some of the old ways of functioning were not very effective in producing high quality results. He made a few changes there.

Before the new manager joined

  • Chefs were fully and only responsible for preparing the food items.
  • Food quality assurance personal will give his concerns and those will be fixed by chef team.
  • Once the food quality is assured, the responsibility will be handed over to the delivery team.(servers/ take away assistants)
  • No collaborative working, lack of mutual understanding among teams
  • Delivery of customer orders took fairly higher amount of time.
  • Quality assurance check for food items were done at the end of preparation only.
  • If any of the category members missing, the whole delivery process would be on hold.

After the changes made by the new manager,

  • Still the chef team taking the responsibility for the preparation. But a highly collaborative environment and cross-functional team has been established. Whenever there is a high amount of food preparation work pending, the QA person and the server/delivery assistants also will be involved in food preparation.  And if the delivery person is not available or if there is an urgent requirement, a member from chef team will act as a server/delivery boy for the time being.
  • Time to time Workers were switched from team to team to be trained in all the areas and to understand other teams’ work aspects. Eg: A person from chef team will act as a server one day a week.
  • The above changes made the employees become multi-skilled. It improved the performance of the restaurant highly as well as most of the employees were rewarded with increments, bonuses and other benefits for their dedication and going extra mile work attitude.
  • Highly collaborative working culture established. Members from each team were able to share their problems or struggles with others which created a better understanding and helped to build better relationship among team members.
  • No of visitors getting increased day by day and the restaurant started to soar high. It was awarded as one of the most favorite restaurants by people in the city and it got the award for the happiest working place too.
  • Needless to say that the company was experiencing a financial gain which was never seen in the history of the restaurant.
  • Newspapers started talking about this magical place and the key person who was behind the scene.

Now, as the IT companies facing the same kind of issue- lack of collaboration among teams, some smart companies want to appoint the new restaurant manager as a consultant to do training and awareness sessions on collaborative working which termed as “DevOp culture” in the IT industry.

How can we develop a success story in IT with the lessons we learnt in the restaurant’s growth?

  • Even though Development, QA and operations team specializes in one area, all teams should have some knowledge on other areas as well.
    • Eg: When operations team get an issue from the client, they should be able to find at least where it goes wrong exactly (not in detail but an overall idea) whether it is a database issue or code issue like that.
    • Dev team should have a basic understanding on areas like deployment, monitoring
    • Dev team should have a good understanding on network and security issues. So when the product is implemented    better validations could be added to prevent issues like cross-site scripting attack.
  • Collaboration among teams is very important. Develop better relationship with in the team and among teams will speed up process as well as it will improve the product quality.
  • Human resources are the vital assets of an IT company not the technology or processes it adheres. Providing a happy and stress-free working environment is a key factor in getting the maximum output from employees. The more the communication gets effective the more the conflicts among teams could be resolved/avoided.
  • Play different roles time to time will not only make the people multi-skilled but it also will make them understand other teams’ viewpoints.
    •  Developers can do QA work at times. Or they can help operations team on the    deployment.
    •  QA team people may collaborate with the development team to get an idea of how the implementation work is done.
  • Attitude of all of the teams plays an important role in getting the work done and make sure it is in a high quality. Rather than passing the responsibility to someone else or some other team, the collective responsibility and ownership for the product is very important.
    •  When there is an issue after production-release, not only the operations team but also the development and QA team   should take the responsibility of resolving the issue in a shortest possible time frame. Collaboration and mutual understanding should be there.

Sunday, November 23, 2014

Pattern Recognition -6

Find out the next two numbers in the series.


2,3,7,25,121,_,_,..........


Answer

Tn=n! +1


Even if we do not  know the term "factorial" still we can find a pattern for the number n-1.

2,3,7,25,121,_,_,.......................

1,2,6,24,120,_,_,.........................

1=1*1
2=1*2
6=2*3
24=6*4
120=24*5
next numbers  120*6=720
                         720*7=5040

now n series will be

2,3,7,25,121,721,5041,..............

Saturday, November 15, 2014

Pattern Recognition-5

Find the next two numbers in the series.
2, 6, 81, 342, 6201, _  , _ ,..............


Answer

Tn= Reverse form of [(Tn-1 * 3)]

2*3=6      Reverse number =6
6*3=18   Reverse number=81
81*3=243  Reverse number=342
342*3=1026 Reverse number=6201

6201*3=18603  Reverse number=30681
30681*3=92043  Reverse number=34029

2 ,6 ,81 ,342 ,6201,30681,34029,......

Sunday, November 9, 2014

Pattern recognition -4

Find out the next two numbers in the series.
1 ,5 ,14 ,37 ,97 ,_ ,_

Answer

Tn=(Tn-1+Tn+1)/3

5=(1+14)/3


14=(5+37)/3


37=(14+97)/3


Next number  (97*3)-37=254

                      (254*3)-97=665


1,5,14,37,97,254,665,........





Thursday, November 6, 2014

Let me approve it


My intention for this post was to add humor as the main ingredient and a little bit of software aspects well. :)

A family of eleven members stays in a holiday resort in a mountain area during vacation where they found a natural pond in a walking distance and planning to do swimming and have a bath over there. Let me introduce the family members. (FYI: They all including the kids know swimming)

1) Maya, Stephen, Morgan, and Amani - All are studying at school.
2) Andy- Father of Maya and Stephen, a typical software developer
3) Anita- Wife of Andy, Quality assurance specialist and well-regarded QA expert
4) Aaren- Father of Morgan and Amani, Elder brother of Andy, Development manager in a reputed IT firm
5) Rukhaiya- Wife of Aaren, Project manager that handled many successful projects.
6) Mahesh- Elder brother of Anita, Head of Operations team in an established IT company.
7) Mithun – Younger brother of Anita, Security analyst
8) Angela – younger sister of Andy, an expert in risk analysis



As they reached by the pond, the kids were eager to jump into it.



Andy – Come on guys! Let us swim, sing and dance. Let us have a competition on swimming. The one who reaches the other side of the pond first will be the winner. Deal Ok?

Anita- Wait a minute please, this pool seems not used by lot of people. First we need to check whether the water is in a good condition, to avoid any allergic issues especially for the kids.

Angela - You are right Anita! And it looks like a muddy land which is very risky to set our feet on it.
Mithun – Yes. And we do not know if there are any harmful creatures like crocodile. Security is the most important thing for us.

Aaren- ok guys. Let us clear out these concerns before allowing kids to get into the pool.
“Prevention is better than cure.”

Mahesh- Yes. I agree with Aaren. As we have so many concerns, I also do not want anyone especially the kids to get in to the pool. If we are to allow, at least we have to have a rapid response team to help or rescue in case if anything happens.

Rukhaiya – Let me talk to the management of this holiday resort and see whether we can get any information on these concerns. Phone call may not be the effective way to get enough info. Let me go and meet them and clarify these things. Please hold on till I get back to you.




Discussion goes on…………………..





Anita – Where are the kids? Oh God…! Who on earth did allow them to go in to the pool?

Andy – No. They are not there. I’m the one who asked them to go and play cricket.

Sunday, November 2, 2014

Math IQ

Again a mathematics question.


When a number is divided by 2 the remainder is 1.
When it is divided by 3 the remainder is 2.
When it is divided by 4 the remainder is 3.


Find the number or numbers which satisfy these conditions and  tell how did you find it?

Answer :
When a number is divided by 2 the remainder is 1. That means the (number+1) is divisible by 2.
In the same way, number+1 is divisible by 3 and 4 as well. Now we need to find the number/numbers which are divisible by 2,3 and 4

LCM(Least common multiple) comes in to play.

LCM for 2,3 and 4 is 12

[(Any number that is multiple of 12) - 1 ] will be the answer for this question.

Eg: 11,23,35,47

Sunday, October 26, 2014

Pattern Recognition-3

Again a pattern recognition question.
If we can denote "Orange" by the following number code,  151811475               
what will be the code for "Apple" ?

Answer

We can give a number to each and every letter in the sequence regardless of the case.(upper/lower)

A,   B,   C,   D,   E,   F,  G,   H,   I,    J,      K,      L,     M,    N,    O,    P,    Q,    R,    S,    T,     U,     V,     W,     X,    Y ,  Z
1,    2,  3,   4,    5,    6,  7,    8,   9,  10,      11,    12,    13,   14,   15,   16,   17,  18   19,    20,    21,  22,    23,    24,   25, 26 

Orange O,r,a,n,g,e  - 15 18 1 14 7 5         - 151811475
 Apple   A,p,p,l,e    -  1  16 16 12 5          - 11616125

Sunday, October 19, 2014

Pattern Recognition - 2


Can you find 10th, 21st, 50th, 101st and 1000th element in this pattern?
 
0,2,1,4,1,6,2,8,…………


Answer

It is combination of two number series.

0,2,1,4,1,6,2,8,…………
  1. Fibonacci series - http://www.mathsisfun.com/numbers/fibonacci-sequence.html
          0,_,1,_,1,_,2……

   2. Even number series
         _,2,_,4,_,6,_,8……
 
All the even count elements will be from even number series and odd count elements will be from Fibonacci series.

10th element will be 10/2 = 5th even number – 10
21st element will be (21+1)/2 =11th fibonacci number -55
50th element will be 50/2 =25th even number -50
101st element will be 101+1/2 =51st Fibonacci number – 12586269025
1000th element will be 1000/2=500th even number -1000

To find nth fibonacci number

private long FindFibonacciNumber(int n)
        {
            long i=0,k = 0;
            long j = 1;
            if (n == 1)
                return 0;
            if (n == 2)
                return 1;
            for (long count= 3; count <= n; count++)
            {
                k = i + j;
                i = j;
                j = k;       
            }
            return k;
        }

Pattern Recognition -1



Can you find the number pattern/series which is NOT the regular number series (1, 2, 3, 4………) where the value of the nth element will be n when n is an even number. For example 10th element in the series will be 10. 100th element will be 100.  1200th element will be 1200. But 101st element will not be 101. 123rd element will not be 123.
 
 Answer :

Well, This was my idea. Very simple.

The pattern is a mix of two number series.

If we take regular number series 1,2,3,4,5…….  We can divide that in to two patterns.
  1. Odd number pattern 1,_,3,_,5……
  2. Even number pattern _,2,_,4,_6,_..........

Now let us keep the second pattern as it is and let us change the first pattern, the odd series like this 1*2,3*2,5*2………
2,6,10,…….. again there is a pattern…

Now the combined pattern is 2, 2, 6, 4, 10,6,………  nth element will be n always when n is an even number.

We can create so many pattern series like this which fits to the given criteria. Is not it?


But some body at office came up with the following single series
n*(-1)^n 
^ denotes power of

That is an excellent answer.:)

Sunday, October 12, 2014

Son of a geek software developer


A little boy, son of a geek software developer (male) is very enthusiastic about computer system and computer softwares.  But in the school semester exam he scored low marks in most of the subjects and parents were informed about his poor performance.

Now parents questioning him the reasons for the poor performance with the feedback given by each and every subject teacher.



Mother:  Mathematics teacher says, whatever she teaches you do not get anything at all. Please tell me why you are unable to understand what she teaches? I know she is a brilliant teacher who makes students score very high marks even in public exams.

Son: Mom, system does not meet the basic requirements for that particular new installation. Something wrong with the system design which I cannot help.

----------------------------------------------------------------------------------------------------
Father: Son, Science teacher says, you always sleep at the class room so that you do not concentrate on the studies. Why is that?

Son: Dad, science subject is there on the time table right before my favorite Piano class which is the last subject of the day. So I make the system go to sleep mode and let it save some power so it can function really well in the piano class rather than becoming low-charged/ fully down without power.

-----------------------------------------------------------------------------------------------------
Mother:  Social studies and history teacher says,sometimes you vaguely looking at the other side during class time with out concentrating on the subject. What is wrong with you dear?

Son: During history class, loads of information is passed to the system and it feels really difficult handle the high load and sometimes system gets stuck. So I have to shutdown all the processes and restart the system and it takes a while.

----------------------------------------------------------------------------------------------------

Father: Your headmaster says, you got in to fight with some of the class mates after school. I told you not to involve in any fight with any one. Did not I?

Son: Dad! You only taught me if any virus or any attack attempt detected, the system should fight back and make the attacker powerless then only it can function properly otherwise system will get severely damaged. They crossed my way so I fought back to protect the system.
-----------------------------------------------------------------------------------------------------

Mother to Father: I think I have made a mistake. I should have taken my dad’s words “Do not marry a software engineer if you want a peaceful life”

:P :)

Sunday, September 28, 2014

Software Industry in 2100



The Software industry is changing very fast and new technologies are emerging every day. The technologies that we used few years ago are outdated now what we are using now may be outdated in a few years’ time in the future.

In this fast-paced world, I just wanted to see (imagine) how the software industry will be in a 100 years, may be in 2100? To find an answer, let me fly along with the horse mind and let me share what I found there. :)



In 2100……..
I see loads of changes in the new era. Here are a few.

1)      Robots- Not only human engineers but robots also work in the software industry and there is huge competition going on between human and robots.

2)      Tools based development – Not like in the start of 21st century, all the software developments are based on tools means very less coding and more conceptualized.

3)      Action oriented programming – The object oriented concept and procedural language concept have ceased to exist and there is a new concept called “Action oriented programming” that has become famous in the software industry. “Action oriented” means all the common functions or actions have been implemented in tools and developers’ work is to identify them and may be a drag and drop will be enough.

4)      Upside down interview culture – In 2010, there were limited no of entrepreneurs and job hunting culture was to hire employees by conducting interviews. As the years pass by, now in 2100, no of employers seems to be more than the no of workers. So the current culture is to conduct interviews for employers and select a person who has the best work offer.

5)      Universalization - with the immense growth of space technology, the earth is now strongly connected with other planets such as Mars and Saturn. The software industries in Mars are willing to outsource to earth mainly for cost reduction.

6)      The largest universal airport – Sri Lanka, a small country in the Asia continent has seen incredible growth in space science and the world first space/universal airport has been built in Sri Lanka. The people from west, east and north have to come to Sri Lanka if they want to visit Mars. :)

Wish I got more time to stay in the imaginary world so I could have shared more with you. :P

Anyway let me fly back from the dream world and here I’m getting ready for my monday’s business. :)