This is a classic problem known as LIS (longest increasing sequence) that was discussed in CACM decades ago. You can find it in HOW TO SOLVE IT BY COMPUTER by R.G. Dromey (1981) ISBN: 0-13-188862-...
T-SQL PuzzleCommented on: 3 years ago
(November 20, 2012)
The reason for the Hexagons in the original game grid is that this was based on the game Hex, (http://en.wikipedia.org/wiki/Hex_game). It was invented independently by John Nash and Piet Hein. It had...
Solutions to TSQL Challenge – Reoccurring VisitsCommented on: 4 years ago
(July 14, 2011)
I am late to the party, but here goes.
Let's assume we have a the usual Calendar table. Use it to build a table of date pairs. Use the date pairs flag each visitor as a today and/or yesterday...
Logic Puzzle – Dice SubstituteCommented on: 6 years ago
(July 2, 2009)
You are in a British pub, so they will have a set of 6-6 dominoes behind the bar. Pull out the blanks, discard the double. Throw the titles in a hat and draw with replacement to simulate dice....
Data quality is really important. Why? Because it helps you save money while increasing profits because of accurate contact data. It’s important to understand what data quality is and why it is important....More
Are you dealing with national and international records? The more expansive your records are in territory, the more problems you will face when it comes to verifying addresses. Not only are you dealing with language differences, but you are also dealing with different address formatting for different countries....More
Your contact data is valuable, but is it up to its full potential? Without the proper maintenance, the quality of your data quickly decreases--so quickly that 50% of databases deteriorate after only two years. It is an absolute necessity to maintain your data in order to decrease costs and increase profits....More