Search, is a C + + technique, today, to give you a talk. First, what is search? Just like searching for something on Baidu, searching for something. First, let's take a look at general search:---------------------------------------------------- The topic dividing line------------------------------------------------------given a set S (Number of collection elements <=30), the sum of all the subset elements of this set is calculated. Input format: Elements in the collection (element <=1000) output format: and input and Output sample input sample: 2 3 Output Sample: 10 This problem is used to search (if you like), but generally plus number theory is better to use search to find the answer to the relationship between the set element and the Set element count ans= Sum*pow (2,s-1) where sums are the sum of the elements of the collection, ANS is the final answer (a little bit of number theory, a little bit) although it is snow, but it is not difficult to launch, mainly search----------------------------------------- -----------topic dividing line------------------------------------------------------and then look deep search: Konjac Konjac asked: "Big guy, deep search what meaning depth First search (DFS) assumes there is a diagram
Simple Talk Search (c + +)