Download presentation

Presentation is loading. Please wait.

Published byRosa Stradling Modified about 1 year ago

1
Agenda Blog signup… First week impressions – High School vs. University.. Career Night – Sep 12 th (Wed) CS outcomes Complexity

2
First Week Impressions? How was your first week at ASU? Good things? Frustrating things? Differences from High School?

3
Mark your calendars for a special evening event (approx. 4:00-8:00PM) in the Memorial Union (Second Floor) At the event, you will have the opportunity to talk to working engineers from a variety of industries and companies, to find out more about engineering careers. You will have the chance to ask them anything you want to know about including what it’s like to be an engineer, or what you need to do to be successful. Attendance will be taken; – there will be no class that week (no class on 9 th September) More information to come later Career Exploration Night Wednesday September 12th s/freshman-engineering-career-exploration- night/

4

5

6

7
Program Outcomes: Computer Science & Computer Systems Engg

8
“Algorithms and Complexity”

9
Sorting… When is a sequence in sorted order? – How many pairwise comparisons do I need to do to check if a sequence of n-numbers is sorted? – If I have a procedure for checking whether a sequence is sorted, is it reasonable to sort a sequence of numbers by generating permutations and testing if any of them are sorted? Intelligence is putting the “test” part of Generate&Test into generate part…

10
Career Fair Activity Career Exploration Module Part 1 Homework: Prepare for Career Exploration Night To prepare for Career Exploration Night you should think about what you want to know or learn from engineering professionals. This may include information about the following: what they do in their jobs (day to day tasks; responsibilities; etc..) what career path did they take from college to where they are now? how they chose their careers advice they have about skills and experience you need to be successful etc, etc, etc… In preparation for the event, create a list of at least 5 questions that you would like to ask the professionals at the event. When you have completed your list, submit it to the Blog You should, of course, ask more than 5 questions at the event, but this list will at least help you to start conversations to get the information you want to know. There is no required set of questions; you should ask the questions you are most interested in. If you are having a hard time thinking of questions, look at the “Student Information for Engineering Career Exploration Night” document (posted on Blackboard) for some ideas to help stimulate your thinking.

11
Can you think of additional questions you want answered? Event on Wed 9/12 4-8pm NO separate class next Friday (the event attendance is the class attendance)

12
Career Exploration Night Experience Topics for Group Discussion: – Share the majors, job titles, and companies of the individuals you met. – What was the most important thing you learned about engineering? Most surprising? Most interesting? – What kind of projects/work activities were mentioned? – What differences did you find between “real people” and what you had read beforehand? Similarities? – What was the best advice that you received?

13
Discussion Highlights (Group reporting) What was the most important thing you learned? – Most surprising? – Most interesting? Major differences/similarities between information from ‘real people’ and information you read? Types of projects/work activities? Did you see different job functions within a single discipline (or similar job functions across multiple disciplines)? What was the best advice that you received?

14
Company Requires Or DesiresMy QualificationDifference Between The Two What I Am Going To Do To Make Up The Difference or Gain a Measurable Accomplishment Job Title: ___________________________ Page # ______

15
Summary of the points from the three groups (9/21)

16

17
Exactly when do we say an algorithm is “slow”? We kind of felt that O(N! * N) is a bit much complexity How about O(N 2 )? O(N 10 )? Where do we draw the line? – Meet the Computer Scientist Nightmare – So “Polynomial” ~ “easy” & “exponential” ~ “hard” – 2 n eventually overtakes any n k however large k is.. How do we know if a problem is “really” hard to solve or it is just that I am dumb and didn’t know how to do better? – If checking the correctness of the solution itself takes more than polynomial time, then we know the problem must be hard.. – But there are many problems, for which checking the correctness is polynomial, and yet we don’t know any efficient algorithm 2n2n

18
Classes P and NP Class P If a problem can be solved in time polynomial in the size of the input it is considered an “easy” problem – Note that your failure to solve a problem in polynomial time doesn’t mean it is not polynomial (you could come up with O(N* N!) algorithm for sorting, after all Class NP Technically “if a problem can be solved in polynomial time by a non-deterministic turing machine, then it is in class NP” Informally, if you can check the correctness of a solution in polynomial time, then it is in class NP – Are there problems where even checking the solution is hard?

19
Tower of Hanoi (or Brahma) Shift the disks from the left peg to the right peg – You can lift one disk at a time – You can use the middle peg to “park” disks – You can never ever have a larger disk on top of a smaller disk (or KABOOM) How many moves to solve a 2-disk version? A 3-disk one? An n-disk one? – How long does it take (in terms of input size), to check if you have a correct solution?

20
How to explain to your boss as to why your program is so slow… I can't find an efficient algorithm, I guess I'm just too dumb. I can't find an efficient algorithm, because no such algorithm is possible. I can't find an efficient algorithm, but neither can all these famous people.

21
The P=NP question Clearly, all polynomial problems are also NP problems Do we know for sure that there are NP problems that are not polynomial? If we assume this, then we are assuming P != NP If P = NP, then some smarter person can still solve a problem that we thought can’t be solved in polytime – Can imply more than a loss of face… For example, factorization is known to be an NP-Complete problem; and forms the basis for all of cryptography.. If P=NP, then all the cryptography standards can be broken! NP-Complete: “hardest” problems in class NP [the giants of NP-world] EVERY problem in class NP can be reduced to an NP-Complete problem in polynomial time --So you can solve that problem by using an algorithm that solves the NP-complete problem

22
Reducing Problems… Mathematician reduces “mattress on fire” problem Make Rao Happy Make Everyone in ASU Happy Make Little Tommy Happy Make his entire family happy General NP- problem Boolean Satisfiability Problem 3-SAT Thus, SAT is NP-Complete Thus, 3SAT is also NP-Complete..but of course! Tommy is a fussy dude!

23
Academic Integrity What it means Typical ASU policy – Homeworks – Exams Take-Home Exams – Term papers

24
Scholarship Opportunities General Scholarships The FURI program NSF REU program

25
Is exponential complexity the worst? After all, we can have 2 2 More fundamental question: Can every computational problem be solved in finite time? “Decidability” --Unfortunately not guaranteed [and Hilbert turns in his grave] 2n2n

26
Some Decidability Challenges In First Order Logic, inference (proving theorems) is semi-decidable – If the theorem is true, you can show that in finite time; if it is false you may never be able to show it In First Order Logic + Peano Arithmatic, inference is undecidable – There may be theorems that are true but you can’t prove them [Godel]

27
Practical Implications of Intractability A class of problems is said to be NP-hard as long as the class contains at least one instance that will take exponential time.. What if 99% of the instances are actually easy to solved? --Where then are the wild things?

28
Satisfiability problem Given a set of propositions P 1 P 2 … P n..and a set of “clauses” that the propositions must satisfy – Clauses are of the form P 1 V P 7 VP 9 V P 12 V ~P 35 – Size of a clause is the number of propositions it mentions; size can be anywhere from 1 to n Find a T/F assignment to the propositions that respects all clauses Is it in class NP? How many “potential” solutions? Canonical NP-Complete Problem. 3-SAT is where all clauses are of length 3

29
Example of a SAT problem P,Q,R are propositions Clauses – P V ~Q V R – Q V ~R V ~P Is P=False, Q=True, R=False as solution? Is Boolean SAT in NP?

30
Hardness of 3-sat as a function of #clauses/#variables #clauses/#variables Probability that there is a satisfying assignment Cost of solving (either by finding a solution or showing there ain’t one) p=0.5 You would expect this This is what happens! ~4.3 Phase Transition!

31
Phase Transition in SAT Theoretically we only know that phase transition ratio occurs between 3.26 and Experimentally, it seems to be close to 4.3 (We also have a proof that 3-SAT has sharp threshold)

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google