• Keine Ergebnisse gefunden

Problem1(3Points) PythonForFineProgrammers Problem2(3Points) Problem4(2Points) Problem3(4Points)

N/A
N/A
Protected

Academic year: 2021

Aktie "Problem1(3Points) PythonForFineProgrammers Problem2(3Points) Problem4(2Points) Problem3(4Points)"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Technische Universität München Fakultät für Informatik

Lehrstuhl für Effiziente Algorithmen Sandeep Sadanandan

Sommer Semester 2009 Problem Sheet 8 Jule 25, 2009

Python For Fine Programmers

Deadline: July 2, 2009

Problem 1 (3 Points)

Create a small http client setup using the socket programming interface of Python.

The program should be able to be run from command line like program.py www.website.com

An web request can be made using HTTP. The data to be sent to the server is:

GET / HTTP 1.0 \r\n

Host: www.google.com \r\n\r\n

The line breaks are coded with “\r \n” and there is an empty line to show the end of request.

Usually, the webservers are listening at the ports 80.

Problem 2 (3 Points)

In the graph class, implement a function to check whether a given list of vertices form a hamiltonian path.

Problem 3 (4 Points)

In the same class, implement an function to check if two given graphs are isomorphs.

The function accept a mapping (a function) and another graph and returs true or false

Problem 4 (2 Points)

Create an iterator NeverEnding, which is a sequence/collector on which one can call thenextfunction infinite times.

Referenzen

ÄHNLICHE DOKUMENTE

Theoretical Computer Science - Bridging Course Exercise Sheet 4. Due: Wednesday, 19th of May 2021,

When execution encounters a parallel directive, the value of the if clause or num_threads clause (if any) on the directive, the current parallel context, the number of levels

instance, for the case of a gap with nodes, Annett, Gold- enfeld, and Renn [7] have shown that all of the possi- ble non-s-wave singlet pairing states of a superconductor

barrier A point in the execution of a program encountered by a team of threads, beyond which no thread in the team may execute until all threads in the team have reached the

The nominal molecular weight cutoffs for solvent-stable membranes are usually given for aqueous or methanol solutions, although it is evident that membrane swelling and other

On the basis of the data mentioned above I propose as my conclusion that the epistle written to the Romans, 1 Corinthians, 2 Corinthians, the epistle to the Philippians and

Representing emotion, would it be for annotation, detection or generation, re- quires the description of the context not directly related to the description of emotion per se (e.g.

The rise of the Islamic state as an alternative to al-Qaeda for leadership of the global jihadist movement presents jihadist groups all over the world with a dilemma, to which