Workshop On Basics of Python
Workshop On Basics of Python
Calculate sum
Yes
If SUM is 0 Save set in list
No
No Yes
Termination
Condition Return list of sets
Sub Set Problem 2
Problem Statement
Find all the subset from a set of
numbers whose sum is zero.
Constraint: Subset size must be 3
to 6 only.
A={-12,-3,-6,7,2,-2,6,3,9,-7,-5,-
8,1,11,-9,-4}
Application of
Sub Set Problem ???
Application of
Sub Set Problem ???
Finding Combo Offer by online portal
e.g. – Flipcart, Amazon, Snapdeal, etc.
Project - 1
ComboFinder
Web application to find combo offer.
Input Output
{P2,P5,P7}
upload {P1,P3,P6,P7}
{P2,P6,P9}
{P3,P7,P9,P12}
Product Sets
Product List
Project - 1
ComboFinder
Develop Web Interface
Submit
Download Python
Download and Install Python