A literature survey on the technique proposed by Tal and Paikin for solving mixed bag puzzles when the total number of puzzles is known can be found here