StartseiteGruppenForumMehrZeitgeist
Web-Site durchsuchen
Diese Seite verwendet Cookies für unsere Dienste, zur Verbesserung unserer Leistungen, für Analytik und (falls Sie nicht eingeloggt sind) für Werbung. Indem Sie LibraryThing nutzen, erklären Sie dass Sie unsere Nutzungsbedingungen und Datenschutzrichtlinie gelesen und verstanden haben. Die Nutzung unserer Webseite und Dienste unterliegt diesen Richtlinien und Geschäftsbedingungen.

Ergebnisse von Google Books

Auf ein Miniaturbild klicken, um zu Google Books zu gelangen.

The Art of Computer Programming, Volumes…
Lädt ...

The Art of Computer Programming, Volumes 1-4A Boxed Set (2011. Auflage)

von Donald E. Knuth (Autor)

Reihen: The Art of Computer Programming (Omnibus 1-4A)

MitgliederRezensionenBeliebtheitDurchschnittliche BewertungDiskussionen
1981138,178 (4.29)1
The bible of all fundamental algorithms and the work that taught many of today's software developers most of what they know about computer programming. --Byte, September 1995 nbsp; Countless readers have spoken about the profound personal influence of Knuth's work. Scientists have marveled at the beauty and elegance of his analysis, while ordinary programmers have successfully applied his "cookbook" solutions to their day-to-day problems. All have admired Knuth for the breadth, clarity, accuracy, and good humor found in his books. nbsp; I can't begin to tell you how many pleasurable hours of study and recreation they have afforded me! I have pored over them in cars, restaurants, at work, at home... and even at a Little League game when my son wasn't in the line-up. --Charles Long nbsp; Primarily written as a reference, some people have nevertheless found it possible and interesting to read each volume from beginning to end. A programmer in China even compared the experience to reading a poem. nbsp; If you think you're a really good programmer... read [Knuth's] Art of Computer Programming... You should definitely send me a résumé if you can read the whole thing. --Bill Gates nbsp; Whatever your background, if you need to do any serious computer programming, you will find your own good reason to make each volume in this series a readily accessible part of your scholarly or professional library. nbsp; It's always a pleasure when a problem is hard enough that you have to get the Knuths off the shelf. I find that merely opening one has a very useful terrorizing effect on computers. --Jonathan Laventhol In describing the new fourth volume, one reviewer listed the qualities that distinguish all of Knuth's work. [In sum:] detailed coverage of the basics, illustrated with well-chosen examples; occasional forays into more esoteric topics and problems at the frontiers of research; impeccable writing peppered with occasional bits of humor; extensive collections of exercises, all with solutions or helpful hints; a careful attention to history; implementations of many of the algorithms in his classic step-by-step form. --Frank Ruskey These four books comprise what easily could be the most important set of information on any serious programmer's bookshelf.… (mehr)
Mitglied:Rvn6dlr
Titel:The Art of Computer Programming, Volumes 1-4A Boxed Set
Autoren:Donald E. Knuth (Autor)
Info:Addison-Wesley Professional (2011), Edition: 1, 3168 pages
Sammlungen:References, Deine Bibliothek, Lese gerade
Bewertung:
Tags:to-read, tech, coding

Werk-Informationen

(The Art of Computer Programming, Volumes 1-4a Boxed Set) By Knuth, Donald E. (Author) Hardcover on 03-Mar-2011 von Donald E. Knuth

Keine
Lädt ...

Melde dich bei LibraryThing an um herauszufinden, ob du dieses Buch mögen würdest.

Keine aktuelle Diskussion zu diesem Buch.

» Siehe auch 1 Erwähnung

(Original Review, 2011)

Here's my code and a sample run attempting to find the shortest path from "Home" to "School":

class Location:
def __init__(self, name):
self.name = name
self.connections = []

def set_connections(self, connections):
self.connections = connections

def __str__(self):
return self.name

home = Location("Home")
storeA = Location("StoreA")
storeB = Location("StoreB")
school = Location("School")
intersection = Location("Intersection")

home.set_connections([storeA, storeB, intersection])
storeA.set_connections([home, storeB])
storeB.set_connections([school])
school.set_connections([storeB, intersection])
intersection.set_connections([school])

visited = []
paths = []

def find_path(start, dest):
visited.append(start)
if start.connections.count(dest) == 1:
print("From ", start, " to ", dest)
print("Found", dest)
visited.append(dest)
paths.append(list(visited))
visited.clear()
else:
for location in start.connections:
if visited.count(location) != 1:
#visited.append(location)
print("From ", start, " to ", location)
find_path(location, dest)

find_path(home, school)

minn = len(paths[0])
index = 0
for i in range(len(paths)):
#print(paths[i])
if minn > len(paths[i]):
minn = len(paths[i])
index = i

print("The shortest path is:")
for j in range(len(paths[index])):
print("From ", paths[index][j], " to ")

#Output:
From Home to StoreA
From StoreA to StoreB
From StoreB to School
Found School
From Home to StoreB
From StoreB to School
Found School
From Home to Intersection
From Intersection to School
Found School
The shortest path is:
From StoreB to
From School to

Question: What Knuth algorithm did I use here?

Bottom-line: Knuth once said something that I still remember to this day (and I follow this dictum to the letter): "Do your own thing and know what you are talking about." ( )
  antao | Oct 20, 2018 |
keine Rezensionen | Rezension hinzufügen

Gehört zur Reihe

Du musst dich einloggen, um "Wissenswertes" zu bearbeiten.
Weitere Hilfe gibt es auf der "Wissenswertes"-Hilfe-Seite.
Gebräuchlichster Titel
Die Informationen stammen von der englischen "Wissenswertes"-Seite. Ändern, um den Eintrag der eigenen Sprache anzupassen.
Originaltitel
Alternative Titel
Ursprüngliches Erscheinungsdatum
Figuren/Charaktere
Wichtige Schauplätze
Wichtige Ereignisse
Zugehörige Filme
Epigraph (Motto/Zitat)
Widmung
Erste Worte
Zitate
Letzte Worte
Hinweis zur Identitätsklärung
Verlagslektoren
Werbezitate von
Originalsprache
Anerkannter DDC/MDS
Anerkannter LCC

Literaturhinweise zu diesem Werk aus externen Quellen.

Wikipedia auf Englisch

Keine

The bible of all fundamental algorithms and the work that taught many of today's software developers most of what they know about computer programming. --Byte, September 1995 nbsp; Countless readers have spoken about the profound personal influence of Knuth's work. Scientists have marveled at the beauty and elegance of his analysis, while ordinary programmers have successfully applied his "cookbook" solutions to their day-to-day problems. All have admired Knuth for the breadth, clarity, accuracy, and good humor found in his books. nbsp; I can't begin to tell you how many pleasurable hours of study and recreation they have afforded me! I have pored over them in cars, restaurants, at work, at home... and even at a Little League game when my son wasn't in the line-up. --Charles Long nbsp; Primarily written as a reference, some people have nevertheless found it possible and interesting to read each volume from beginning to end. A programmer in China even compared the experience to reading a poem. nbsp; If you think you're a really good programmer... read [Knuth's] Art of Computer Programming... You should definitely send me a résumé if you can read the whole thing. --Bill Gates nbsp; Whatever your background, if you need to do any serious computer programming, you will find your own good reason to make each volume in this series a readily accessible part of your scholarly or professional library. nbsp; It's always a pleasure when a problem is hard enough that you have to get the Knuths off the shelf. I find that merely opening one has a very useful terrorizing effect on computers. --Jonathan Laventhol In describing the new fourth volume, one reviewer listed the qualities that distinguish all of Knuth's work. [In sum:] detailed coverage of the basics, illustrated with well-chosen examples; occasional forays into more esoteric topics and problems at the frontiers of research; impeccable writing peppered with occasional bits of humor; extensive collections of exercises, all with solutions or helpful hints; a careful attention to history; implementations of many of the algorithms in his classic step-by-step form. --Frank Ruskey These four books comprise what easily could be the most important set of information on any serious programmer's bookshelf.

Keine Bibliotheksbeschreibungen gefunden.

Buchbeschreibung
Zusammenfassung in Haiku-Form

Aktuelle Diskussionen

Keine

Beliebte Umschlagbilder

Gespeicherte Links

Bewertung

Durchschnitt: (4.29)
0.5
1 1
1.5
2
2.5
3
3.5
4 1
4.5
5 5

Bist das du?

Werde ein LibraryThing-Autor.

 

Über uns | Kontakt/Impressum | LibraryThing.com | Datenschutz/Nutzungsbedingungen | Hilfe/FAQs | Blog | LT-Shop | APIs | TinyCat | Nachlassbibliotheken | Vorab-Rezensenten | Wissenswertes | 206,083,199 Bücher! | Menüleiste: Immer sichtbar