Computer Science > Summary > Advanced algorithioms (All)
Travelling salesman problem (and obvious algorithm) - Input : A finite set of "cities" {1, . . . , n} and a set of positive integer "distances" d(i, j) between i and j for each pair i < j. [d(i,j)=d( ... j,i)] Output : A permutation i1, . . . , in of cities 1, . . . , n such that the sum ∑(1≤j≤n−1) d(ij , ij+1) + d(i1, in) is as small as possible. This sum is the length of a tour starting in the city i1, visiting all the cities in a certain order and returning back to i1. Obvious algorithm is try every permutation of cities (n!) Boolean satisfiability problem (and obvious algorithm) - Input : A Boolean formula F with variables x1, . . . , xn. Output : Yes if F is satisfiable, else No obvious "brute force" algorithm examines in arbitrary order all possible evaluations of variables. If one evaluation the value of F is true, then F is satisfiable and the output is Yes, else the output in No [Show More]
Last updated: 2 years ago
Preview 1 out of 24 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Jun 17, 2023
Number of pages
24
Written in
All
This document has been written for:
Uploaded
Jun 17, 2023
Downloads
0
Views
110
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·