Antonio Gulli's coding playground

Random commentary about Machine Learning, BigData, Spark, Deep Learning, C++, STL, Boost, Perl, Python, Algorithms, Problem Solving and Web Search

Friday, July 31, 2015

Partition Set – partition a multiset S of positive integers into two subsets S1 and S2, such that the sum of the numbers in S1 equals the sum of the numbers in S2

Pubblicato da codingplayground a 12:22 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, July 30, 2015

Segment Partition -– Given a segment of integer length n, cut it into different integer parts in such a way to maximize the product of the lengths of all parts

Pubblicato da codingplayground a 12:24 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Wednesday, July 29, 2015

Cutting a Rod – given a rod of length n and a vector of prices for different lengths, cut the rod for maximizing the gain

Pubblicato da codingplayground a 12:25 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Tuesday, July 28, 2015

CONVERTING A DOUBLE LINKED LIST INTO A BST

Pubblicato da codingplayground a 9:39 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Monday, July 27, 2015

IMPLEMENTING FINDMIN AND FINDMAX IN A BS

Pubblicato da codingplayground a 9:36 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Sunday, July 26, 2015

IMPLEMENTING DELETENODE IN A BST

Pubblicato da codingplayground a 9:37 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Saturday, July 25, 2015

CONVERTING A DOUBLE LINKED LIST INTO A BST

Pubblicato da codingplayground a 9:50 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, July 24, 2015

Boolean Parenthesization – given a Boolean expression of and, or, xor, true, false, find the number of ways to parenthesize and evaluate to true

Pubblicato da codingplayground a 12:29 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, July 23, 2015

Matrix Parenthesization -- Given a set of m Matrices find the most efficient way of multiplying them

Pubblicato da codingplayground a 12:27 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Wednesday, July 22, 2015

Maximum value contiguous subsequence – given an array of real numbers, find a contiguous subsequence with max sum s

Pubblicato da codingplayground a 12:31 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Tuesday, July 21, 2015

MERGE TWO BALANCED BINARY SEARCH TREES

Pubblicato da codingplayground a 9:52 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Monday, July 20, 2015

FIND IF THERE IS A TRIPLET IN A BALANCED BST THAT ADDS TO ZERO

Pubblicato da codingplayground a 9:53 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Sunday, July 19, 2015

IMPLEMENTING A B-TREE

Pubblicato da codingplayground a 9:53 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Saturday, July 18, 2015

Stock prices – Given a histogram array of unsigned integers encoding the price of a stock title during the previous year, compute the area for the largest rectangle contained in this histogram

Pubblicato da codingplayground a 12:32 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, July 17, 2015

Ship Battle – Given a matrix M and an array V, match the array in the matrix

Pubblicato da codingplayground a 12:32 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, July 16, 2015

Max Submatrix 0/1 - Given a matrix consisting only of 0s and 1s, find the maximum size square sub-matrix with all 1s

Pubblicato da codingplayground a 12:26 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Wednesday, July 15, 2015

FINDING THE K-TH ELEMENT IN A BST

Pubblicato da codingplayground a 9:51 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Tuesday, July 14, 2015

Balanced partition – given an array of integers between 0 and M, divide the integers into two sets such that the difference of their sums is minimized

Pubblicato da codingplayground a 12:31 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Monday, July 13, 2015

COMPUTING THE DIAMETER OF A BINARY TREE

Pubblicato da codingplayground a 9:20 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Sunday, July 12, 2015

PRINTING ALL THE KEYS IN A BST WITHIN A GIVEN INTERVAL

Pubblicato da codingplayground a 9:52 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Saturday, July 11, 2015

IMPLEMENTING AN INORDER VISIT FOR A BINARY TREE

Pubblicato da codingplayground a 9:20 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, July 10, 2015

IMPLEMENTING A LEVEL ORDER VISIT FOR A BINARY TREE

Pubblicato da codingplayground a 9:21 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, July 9, 2015

CONVERTING A BST INTO A DOUBLE LINKED LIST

Pubblicato da codingplayground a 9:51 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Wednesday, July 8, 2015

CHECKING IF TWO BINARY TREES ARE STRUCTURALLY IDENTICAL

Pubblicato da codingplayground a 9:24 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Tuesday, July 7, 2015

VERIFYING IF A PATH SUM IS EQUAL TO AN INTEGER

Pubblicato da codingplayground a 9:25 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Monday, July 6, 2015

PRINTING ALL THE PATHS IN A BINARY TREE

Pubblicato da codingplayground a 9:25 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Sunday, July 5, 2015

FIND THE MAXIMUM PATH SUM BETWEEN TWO LEAVES OF A BINARY TREE

Pubblicato da codingplayground a 9:27 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Saturday, July 4, 2015

PRINTING A ZIG-ZAG TRAVERSAL

Pubblicato da codingplayground a 9:28 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Friday, July 3, 2015

IMPLEMENTING FIND AND INSERT IN A BINARY SEARCH TREE

Pubblicato da codingplayground a 9:29 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, July 2, 2015

IMPLEMENTING A SKIPLIST

Pubblicato da codingplayground a 9:53 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Wednesday, July 1, 2015

PRINTING THE LOWEST COMMON ANCESTOR (LCA)

Pubblicato da codingplayground a 9:29 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Antonio Gulli

  • Gulli Family

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Search This Blog

Popular Posts

  • K-means in C++
    K-means is a classical clustering algorithm.. Here you have a C++ code for K-means clustering . (Edit: 12/05/013) See also my more rece...
  • Adaboost : improve your weak performance
    Adaboost is one of my favorite Machine Learning algorithm. The idea is quite intriguing: You start from a set of weak classifiers and learn...
  • Nearest Neighbour on KD-Tree in C++ and Boost
    Wikipedia describes the pseudo-code for computing the nearest neighbour (nn) on an already built KDtree. Here you have a boost implementatio...
  • place n queens on a chessboard
    typical recursive solution where we tentatively put a queen, if this doesn't violate conditions in column i. Then continue in  submatrix...
  • Discuss memory layout for C programs
    Ideally you should discuss all the different areas that are used
  • A robot is moving in a rectangular board
    It can move either down or right and the board is N x M. How many path does the robot have? Solution: Steps are N+M and we can chose N, ...
  • DBSCAN clustering algorithm
    DBSCAN is a well-known clustering algorithm, which is easy to implement. Quoting Wikipedia: " Basically, a point q is directly densit...
  • Design Patterns : C++ full collection of Gamma's patterns
    Full collection of Gamma's patterns in c++: Creational : Abstract Factory, Builder, Factory, Prototype, Object Pool, Singleton, Struct...
  • Learning linear regression with gradient descend
    Last week I restarted an old and good behavior (see  A collection of algos and data structures published here) . Every day, I take an well k...
  • PCA: Dimensional Reduction in Eigen
    PCA (Principal Component Analisys) is a classical machine learning method to reduce the dimensionality of a problem. PCA involves the calcu...

Antonio Gulli Google

Antonio Gulli Google
Google

Antonio Gulli Microsoft

Antonio Gulli Microsoft
Antonio Gulli Microsoft

Antonio Gulli Ask.com

Antonio Gulli Ask.com
Antonio Gulli Ask.com

Antonio Gulli Highlander

Antonio Gulli Highlander
Antonio Gulli Highlander

Antonio Gulli University

Antonio Gulli University
Antonio Gulli University

Antonio Gulli Elsevier

Antonio Gulli Elsevier
Antonio Gulli Elsevier

Antonio Gulli My Ferrari

Antonio Gulli My Ferrari
Antonio Gulli My Ferrari

Antonio Gulli My Search Engine

Antonio Gulli My Search Engine
Antonio Gulli My Search Engine

Antonio Gulli My Shipit Microsoft

Antonio Gulli My Shipit Microsoft
Antonio Gulli My Shipit Microsoft

Antonio Gulli My Patents

Antonio Gulli My Patents
Antonio Gulli My Patents

Antonio Gulli My Awards

Antonio Gulli My Awards
Antonio Gulli My Awards

Antonio Gulli My Awards

Antonio Gulli My Awards
Antonio Gulli My Awards

Antonio Gulli Image Search

Antonio Gulli Image Search
Antonio Gulli Image Search

Blog Archive

  • ►  2016 (2)
    • ►  May (2)
  • ▼  2015 (184)
    • ►  December (4)
    • ►  November (16)
    • ►  October (32)
    • ►  September (30)
    • ►  August (29)
    • ▼  July (31)
      • Partition Set – partition a multiset S of positive...
      • Segment Partition -– Given a segment of integer le...
      • Cutting a Rod – given a rod of length n and a vect...
      • CONVERTING A DOUBLE LINKED LIST INTO A BST
      • IMPLEMENTING FINDMIN AND FINDMAX IN A BS
      • IMPLEMENTING DELETENODE IN A BST
      • CONVERTING A DOUBLE LINKED LIST INTO A BST
      • Boolean Parenthesization – given a Boolean express...
      • Matrix Parenthesization -- Given a set of m Matric...
      • Maximum value contiguous subsequence – given an ar...
      • MERGE TWO BALANCED BINARY SEARCH TREES
      • FIND IF THERE IS A TRIPLET IN A BALANCED BST THAT ...
      • IMPLEMENTING A B-TREE
      • Stock prices – Given a histogram array of unsigned...
      • Ship Battle – Given a matrix M and an array V, mat...
      • Max Submatrix 0/1 - Given a matrix consisting only...
      • FINDING THE K-TH ELEMENT IN A BST
      • Balanced partition – given an array of integers be...
      • COMPUTING THE DIAMETER OF A BINARY TREE
      • PRINTING ALL THE KEYS IN A BST WITHIN A GIVEN INTE...
      • IMPLEMENTING AN INORDER VISIT FOR A BINARY TREE
      • IMPLEMENTING A LEVEL ORDER VISIT FOR A BINARY TREE
      • CONVERTING A BST INTO A DOUBLE LINKED LIST
      • CHECKING IF TWO BINARY TREES ARE STRUCTURALLY IDEN...
      • VERIFYING IF A PATH SUM IS EQUAL TO AN INTEGER
      • PRINTING ALL THE PATHS IN A BINARY TREE
      • FIND THE MAXIMUM PATH SUM BETWEEN TWO LEAVES OF A ...
      • PRINTING A ZIG-ZAG TRAVERSAL
      • IMPLEMENTING FIND AND INSERT IN A BINARY SEARCH TREE
      • IMPLEMENTING A SKIPLIST
      • PRINTING THE LOWEST COMMON ANCESTOR (LCA)
    • ►  June (24)
    • ►  May (11)
    • ►  April (2)
    • ►  March (2)
    • ►  February (2)
    • ►  January (1)
  • ►  2014 (82)
    • ►  December (1)
    • ►  November (1)
    • ►  September (11)
    • ►  August (25)
    • ►  July (1)
    • ►  June (14)
    • ►  May (23)
    • ►  April (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (2)
  • ►  2013 (120)
    • ►  December (16)
    • ►  November (1)
    • ►  October (1)
    • ►  September (30)
    • ►  August (17)
    • ►  July (17)
    • ►  May (3)
    • ►  April (2)
    • ►  March (22)
    • ►  February (4)
    • ►  January (7)
  • ►  2012 (241)
    • ►  November (29)
    • ►  October (22)
    • ►  September (28)
    • ►  August (31)
    • ►  July (31)
    • ►  June (31)
    • ►  May (11)
    • ►  April (17)
    • ►  March (27)
    • ►  February (4)
    • ►  January (10)
  • ►  2011 (361)
    • ►  December (20)
    • ►  November (29)
    • ►  October (34)
    • ►  September (31)
    • ►  August (35)
    • ►  July (32)
    • ►  June (30)
    • ►  May (33)
    • ►  April (30)
    • ►  March (30)
    • ►  February (29)
    • ►  January (28)
  • ►  2010 (387)
    • ►  December (33)
    • ►  November (28)
    • ►  October (32)
    • ►  September (31)
    • ►  August (42)
    • ►  July (37)
    • ►  June (32)
    • ►  May (31)
    • ►  April (30)
    • ►  March (30)
    • ►  February (29)
    • ►  January (32)
  • ►  2009 (382)
    • ►  December (31)
    • ►  November (31)
    • ►  October (25)
    • ►  September (17)
    • ►  August (28)
    • ►  July (32)
    • ►  June (48)
    • ►  May (38)
    • ►  April (23)
    • ►  March (40)
    • ►  February (33)
    • ►  January (36)
  • ►  2008 (10)
    • ►  December (4)
    • ►  August (3)
    • ►  July (1)
    • ►  June (2)

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

My Blog List

  • The Official Google Blog
    Watch how our Android XR glasses work with Gemini in the real world. - At I/O 2025, we shared a major update on our work on Android XR, a new platform for headsets and glasses. We also showed a demo of how Android XR glasses w...
    12 hours ago
  • GigaOM
    SAP Sapphire 2025 - I just returned from SAP Sapphire 2025 in Orlando, and while SAP painted a compelling vision of an AI-powered future, I couldn’t The post SAP Sapphire 20...
    1 day ago
  • Inside Search
    How well do you know our I/O 2025 announcements? - Take this quiz about Google I/O 2025 to see how well you know what we announced this year at I/O.
    1 day ago
  • Computational Complexity
    The Blog of Record - On Saturday, I had my last Illinois Tech graduation as dean before I step down at the end of June. The College of Computing had nearly 1600 graduates and...
    2 days ago
  • Facebook Developer Blog
    Introducing Ads in Threads - Threads is our newest, fast-growing social app for public conversation, where people are connecting over ideas
    4 days ago
  • PeteSearch
    Why is Pacifica so Unpopular? - Not long after I’d first moved to San Francisco, I had a friend from the UK visit. My apartment overlooked the N Judah tram line, and seeing the “Ocean Bea...
    1 week ago
  • Process Algebra Diary
    PhD Position in Probabilistic Session Types at the IT University of Copenhagen - Marco Carbone has a PhD position at the IT University Copenhagen in the PROBABILIST project (PROBABILIstic Session Types), funded by the Independent Rese...
    2 weeks ago
  • TechCrunch
    Top 10 AI Tools That Will Transform Your Content Creation in 2025 - [image: Top 10 AI Tools That Will Transform Your Content Creation in 2025] Looking to level up your content creation game in 2025? You're in the right pla...
    4 months ago
  • Search Engine Land: News About Search Engines & Search Marketing
    TikTok unveils 5 new advertising tools - TikTok introduced Smart+, GMV Max, PETs, Conversion Lift Studies, and Out of Phone: Retail to help brands drive stronger results.
    7 months ago
  • in theory
    FOCS Test of Time Awards - The FOCS test of time award recognizes each year a paper, or papers, each from the FOCS conference of 10, 20, and 30 years earlier for the impact they have...
    11 months ago
  • Zen and the Art of Programming
    I Ask Basic Questions During Technical Interviews - Over the past 18 years at IBM, I have interviewed over a thousand programmers for positions within my team (which has a fair number of interns.) Most of ...
    1 year ago
  • Official Google Research Blog
    Generative AI to quantify uncertainty in weather forecasting - Posted by Lizao (Larry) Li, Software Engineer, and Rob Carver, Research Scientist, Google Research Accurate weather forecasts can have a direct impact on ...
    1 year ago
  • Geeking with Greg
    My book, Algorithms and Misinformation - Misinformation and disinformation are the biggest problems on the internet. To solve a problem, you need to understand the problem. In *Algorithms and Mis...
    1 year ago
  • TechCrunch Europe
    How Ground Temperature Changes with Depth - [image: ground temperature with depth] Introduction The study of ground temperature changes with depth is essential for understanding the thermal character...
    1 year ago
  • GeeksforGeeks
    Python Flask Projects with Source Code (Beginners to Advanced) - Flask, a Python web application framework, was created by Armin Ronacher. Known for its lightweight and efficient nature, Flask is designed for quick sta...
    1 year ago
  • SEO by the Sea
    Identifying Subjective Attributes Of Entities - Identifying UGC Subjective Attributes Of Entities This recently granted patent is about identifying subjective attributes of entities. I haven’t seen a p...
    3 years ago
  • My Biased Coin
    Current CS 124 Stats - This is as much personal recording for me (and perhaps of interest to Harvard people who read the blog). But also putting the numbers here for others to k...
    5 years ago
  • my slice of pizza
    Trumpet - Someone asked me for my second favorite musical instrument: Trumpet. Hear it, and I challenge you to not raise your head and look beyond horizons. Put it ...
    5 years ago
  • Matt Cutts: Gadgets, Google, and SEO
    All the Fitbit activity badges - Fitbit has discontinued their Fitbit One step trackers, which seems like a good opportunity to step back and reflect on wearing one for the last decade or ...
    5 years ago
  • John Battelle's Searchblog
    Do We Want A Society Built On The Architecture of Dumb Terminals? - The post Do We Want A Society Built On The Architecture of Dumb Terminals? appeared first on John Battelle's Search Blog. God, “innovation.” First banali...
    6 years ago
  • Google News Blog
    Find out how journalists across the world use technology today - How do journalists use technology around the world? A new interactive explorer produced by the International Center for Journalists (ICFJ) and Google New...
    7 years ago
  • Search Engine Watch Blog
    Five very quick tips to building a loyal ecommerce customer base - Don’t leave all that juicy revenue out there; get smart about re-engaging and watch your numbers climb.
    8 years ago
  • Microsoft Research Downloads
    LatticeCrypto - LatticeCrypto is a high-performance and portable software library that implements lattice-based cryptographic algorithms. The first release of the library ...
    9 years ago
  • Wolfram|Alpha Blog
    Find All Wolfram News in One Place—The Wolfram Blog - This is the final post here at the Wolfram|Alpha Blog. Approximately six and a half years ago our launch team started the Wolfram|Alpha blog just prior to ...
    9 years ago
  • Mini-Microsoft
    18,000 Microsoft Jobs Gone... Eventually? - *1. Cut Once.* *2. Cut Deeply.* And might I humbly add: *3. Cut Quickly.* As of this morning, we're looking to cut 18,000 Microsoft positions including ...
    10 years ago
  • Twitter Blog
    An invitation to #ComedyFest (BYOB) - This week Twitter is turning into a comedy club, and you’ve got the best seats in the house, all for the price of free. We’re not saying that enjoying your...
    12 years ago
All opinions are mine. Simple theme. Powered by Blogger.