Start free trial
Trending New Genres Authors
EnglishEnglish
EspañolSpanish
简体中文Chinese
繁體中文Chinese (Traditional)
FrançaisFrench
DeutschGerman
日本語Japanese
PortuguêsPortuguese
ItalianoItalian
한국어Korean
РусскийRussian
NederlandsDutch
العربيةArabic
PolskiPolish
हिन्दीHindi
Tiếng ViệtVietnamese
SvenskaSwedish
ΕλληνικάGreek
TürkçeTurkish
ไทยThai
ČeštinaCzech
RomânăRomanian
MagyarHungarian
УкраїнськаUkrainian
IndonesiaIndonesian
DanskDanish
SuomiFinnish
БългарскиBulgarian
עבריתHebrew
NorskNorwegian
HrvatskiCroatian
CatalàCatalan
SlovenčinaSlovak
LietuviųLithuanian
SlovenščinaSlovenian
СрпскиSerbian
EestiEstonian
LatviešuLatvian
فارسیPersian
മലയാളംMalayalam
தமிழ்Tamil
اردوUrdu
Searching...
SoBrief
Algorithms of the Intelligent Web

Algorithms of the Intelligent Web

Build smarter search and recommendations, and learn why a perfect model can fail on unfamiliar data.
by Haralambos Marmanis 2009 3445 pages
3.62
130 ratings
Listen
Immersive
V2.3
Amazon Kindle Audible
Try Full Access for 3 Days
Unlock listening & more!
Continue

Key Takeaways

Build web intelligence from data, reference structures, and learning algorithms

Three parts make intelligence. The book distinguishes an intelligent application from a merely collaborative or polished one: it must use accumulated data, a reference structure for interpreting that data, and algorithms that find patterns or make predictions. The authors call this combination the triangle of intelligence. A shared document, for instance, contains collective knowledge; a system that finds relevant passages, groups similar contributions, and learns what users find useful turns that knowledge into new services.

Adapt the response. A food-ordering site that notices a customer repeatedly chooses fish on Wednesdays can offer a relevant suggestion rather than behave as if each visit were the first. The same principle supports search, recommendations, classification, and fraud detection. These methods are not human understanding. They infer useful patterns from evidence and should be expected to answer with uncertainty.

Analysis

The framework is useful because it makes intelligence an architectural property, not a marketing adjective. It also exposes a common gap: abundant data and a clever model are not enough if the system has no meaningful categories or context. The framework is strongest when its parts remain separately inspectable, so teams can ask whether a bad result came from weak data, a poor representation, or an unsuitable algorithm. Its limit is that a reference structure can encode the assumptions of whoever designed it, so adaptation should not be mistaken for neutrality.

Audit your data before trusting the cleverness of your model

Bad inputs travel far. The book warns against assuming that development data resembles production data, that fields are complete, or that values have consistent meanings and units. A height dataset where every development example is unusually tall can make a six-foot person appear short by comparison. Missing values, changing database semantics, mixed units, and unsuitable data types can all distort a model before its algorithm even begins.

Start with the simplest model. The authors also caution against assuming that larger datasets always improve results, that one library suits every problem, or that complexity guarantees quality. A method that works for a hundred users may fail with a hundred thousand. Simple baselines reveal what the data can support and make later improvements easier to interpret.

Analysis

This is a call to treat data preparation as part of the model, rather than as clerical work that precedes the real work. The height example shows how a model can be internally consistent and externally absurd because its reference population is skewed. Simplicity is valuable for diagnosis, but it is not automatically safer: a basic rule can still produce harmful decisions if its inputs or assumptions are wrong. A useful discipline is to record where examples came from and test the same model across distinct populations and operating conditions.

Text matching is only a start. The book uses Lucene to index documents, then shows how keyword ranking can be manipulated. In a small search example, a spam page stuffed with “Armstrong” rose above legitimate marathon coverage. PageRank counters this by treating links as recommendations: pages linked from important pages gain importance themselves. A random-surfer model handles pages with no outgoing links by allowing a jump to another page, and uses teleportation to prevent the surfer from being trapped in a link pattern.

Add personal evidence. Recorded clicks can help tailor results to a specific user and query. A naïve Bayes model estimates which pages that person has selected in similar circumstances. The combined system therefore uses textual match, link structure, and behavior, rather than expecting any single signal to represent relevance.

Analysis

Search relevance is a negotiated judgment, not a property contained in a query string. The three signals answer different questions: does the text match, does the network treat the page as important, and has this user found it useful? Their combination is more informative than any one alone, but it also makes ranking harder to explain. Clicks may reflect curiosity or prominence rather than satisfaction, while links can be manipulated. The practical lesson is not to maximize signals indiscriminately, but to test whether each improves results for the task and audience at hand.

Recommend from shared preferences, but choose similarity for your data

Two routes to relevance. Collaborative filtering infers preferences from patterns in user ratings or behavior. It can compare people with similar tastes, or items that receive similar ratings. Content-based recommendation instead compares descriptions of users or items. The book’s music-store example shows the intuition: listeners who agree on songs can guide suggestions for songs one listener has not tried. Large services often favor item comparisons because there are usually fewer items than users.

Validate the match. Similarity is not one universal formula. The book compares distance-based and set-based measures, then introduces Pearson correlation for ratings after adjusting for differences in users’ rating habits. On a MovieLens sample, a recommender produced an RMSE of 1.0256; the book reports stronger results in the Netflix competition, while noting that the datasets differ. New users and sparse ratings remain difficult cases.

Analysis

A recommendation engine is a model of affinity, and every affinity measure defines what counts as alike. Two readers may share topics but differ in tone, or rate the same films differently because one rates generously. Normalization can help, yet no formula can recover a preference that the data never recorded. The book’s emphasis on empirical comparison is therefore important: a mathematically elegant similarity may perform worse than a plain one. Recommendation quality should also be considered in context, since a bad suggestion can cost trust even when its numerical prediction is close.

Choose clustering by the shape of your data and the groups you need

Grouping has no answer key. Clustering discovers groups without being given labels in advance. Sorting records by one database field can expose simple groupings, but it fails when several attributes matter or when the data is unstructured. Hierarchical methods build clusters from smaller groups; k-means instead requires a chosen number of clusters and iteratively moves points toward cluster centers. ROCK is designed for categorical data and uses shared neighbors, while DBSCAN groups dense regions and can mark isolated points as noise.

No method wins everywhere. The book’s user-profile example shows how a plausible ordering can hide meaningful differences, while single-link clustering can join distant groups through a chain of near neighbors. Many methods also become expensive as datasets grow. With many dimensions, points can become nearly indistinguishable by distance, weakening the very notion of a nearest neighbor.

Analysis

Clustering is best understood as a lens for exploration, not an oracle that reveals the one true taxonomy. Its output depends on the distance measure, feature scaling, parameters, and intended use. That dependence is not a defect to be eliminated; it is a reason to inspect groups with domain knowledge and compare several plausible configurations. The book’s warning about high dimensions is especially useful because adding more measurements can make similarity less meaningful, not more. A cluster becomes valuable when it supports a decision or discovery, not merely because an algorithm drew a boundary.

Train classifiers on examples, then test them on genuinely unseen cases

Classification needs a map. Unlike clustering, classification assigns an item to categories defined in advance. The book describes an ontology through concepts, instances, and attributes: categories, the things being categorized, and the properties used to describe them. A classifier learns from labeled examples, is validated on separate examples, and is then used in production. Naïve Bayes estimates class probabilities from observed attributes; rule engines apply explicit if-then conditions; neural networks learn adjustable connections among numerical inputs.

Test generalization. In a fraud example, a neural network classified 1,100 test transactions perfectly when they came from the same patterns as its training data. Replacing a familiar legitimate transaction description with an unseen phrase led to four errors. The example shows why a perfect score on familiar-looking data is not proof that the classifier can handle new conditions.

Analysis

The training, validation, and production stages form a compact theory of responsible model use. The fraud example makes a subtle point: an example can be new as a record yet familiar in every meaningful feature. A fair test must therefore challenge the model with the kinds of variation expected in operation, not simply reserve a random slice of nearly identical cases. Categories also carry consequences. A system that sorts news can tolerate different errors from one that flags a financial transaction, so confidence and the cost of false positives and false negatives belong in the design.

Combine classifiers when their mistakes differ, not merely their names

Diversity can help. An ensemble combines several classifiers. Bagging trains models on different samples of the same labeled data and uses their votes; boosting repeatedly emphasizes cases that earlier models misclassified. Both methods rely on differences among their members. If every classifier makes the same errors, adding more models mostly adds computation.

Measure the gain. On the book’s artificial credit-worthiness task, naïve Bayes and a decision tree reached accuracies of 82.6% and 82.62%, a difference the authors found statistically insignificant. A neural network scored 71.65%. With a small training sample and noisy data, bagging decision trees improved accuracy from about 60.5% with one model to about 64.6% with five, though gains fluctuated. A version of boosting reached about 66.0% with 61 models, at greater computational cost.

Analysis

Ensembling is not a vote for complexity; it is a bet that different models see different parts of the problem. The credit example usefully separates an apparent numerical edge from a statistically meaningful one, while the fluctuating bagging results undermine the fantasy that every added model helps. The key diagnostic is error overlap: if the members fail on the same cases, their combination has little room to improve. The decision should include latency, maintenance, and error costs, not accuracy alone. A lean model that performs reliably may be preferable to an elaborate committee.

Order your algorithms deliberately because one stage can clean another

Pipelines change outcomes. The news-portal example combines classification and clustering. When all 129 stories were clustered before classification, one group grew to 34 stories and mixed unrelated topics. Classifying stories first reduced some of that noise, then clustering within each category produced more focused groups. The operations do not commute: changing their order changes the structure users see.

Add a decision layer. A news group itself may need a category, so the system must decide whether to classify a representative article or combine evidence from several stories. The book calls this a classification strategy and treats it as a place for application-specific logic. The same clusters can also support cross-references between categories, rather than only organizing stories into one topic.

Analysis

This example reveals that system behavior emerges from composition, not just from the quality of individual algorithms. Classification narrows the space in which clustering searches, while global clustering may preserve useful cross-topic connections that the category boundary would erase. The right sequence depends on whether the product values clean topic pages, surprising associations, or both. A good pipeline should therefore make its intermediate outputs visible. When an odd group appears, developers need to see whether the issue began in classification, similarity construction, or the order of operations.

Budget for latency, scale, and error costs before shipping intelligent features

Performance is part of usefulness. An algorithm that returns excellent answers too slowly may be unusable. The book notes that search and clustering can require large memory and computation, and that dense matrices waste resources when most links are absent. Sparse representations and distributed processing can help at scale, but scalability must be considered in the design rather than assumed from adding machines.

Measure what matters. Precision asks how many retrieved results are relevant; recall asks how many relevant results were found. For classifiers, confusion matrices distinguish false positives from false negatives, whose costs may differ sharply. Cross-validation can estimate performance when labeled examples are limited, but no metric compensates for unrepresentative training data. A system must be tested for both quality and operating time under realistic conditions.

Analysis

The book treats deployment constraints as algorithmic facts, which is a valuable corrective to prototypes that succeed only on small samples. A production system is a service with a response-time budget, memory limits, and users who experience the consequences of mistakes. Metrics should reflect those consequences: a search portal may prioritize precision for a narrow query, while a screening system may be more concerned with missing a rare but serious case. The broader principle is to evaluate the whole decision path, including data collection and the action taken after a model returns its answer.

Analysis

Algorithms of the Intelligent Web is an applied computer science guide organized around five capabilities: search, recommendation, clustering, classification, and classifier ensembles. Its unifying claim is practical rather than philosophical. A web application becomes adaptive when it can turn collected data into useful patterns, and software developers can build that behavior without first mastering every mathematical derivation. The authors teach through working examples, including spam-distorted search, music ratings, email categorization, fraud detection, credit assessment, and a news portal that combines the earlier methods.

The book’s most durable contribution is its insistence that algorithms are components within a system. A search rank depends on the corpus and its links; a recommendation depends on what has been rated; a classifier depends on category definitions and representative examples. The news portal makes this interdependence visible: clustering before classification creates different groups from clustering after classification. Consequently, model selection cannot be separated from data design, product purpose, and operating constraints.

Its examples also carry an important methodological lesson: attractive scores can mislead. The fraud network appears perfect until the test data contain unfamiliar descriptions. Two classifiers with slightly different accuracy may not differ significantly. An ensemble can improve a baseline, but not monotonically, and often at extra cost. These examples anticipate modern concerns about distribution shift, evaluation leakage, and operational monitoring, even though the book predates contemporary terminology and tools.

The main limitation is the age and scope of the implementation material. The Java libraries and specific code are period-bound, and some heuristics, particularly DocRank, are presented as promising rather than established. The algorithms should therefore be read as demonstrations of reasoning patterns, not ready-made production recipes. The lasting lesson is to build a simple baseline, understand the data, test on realistic unseen cases, measure errors according to their consequences, and combine methods only when their distinct strengths are demonstrated.

Summary in 30 Seconds
Useful web intelligence depends on collected data, structures that give it context, and algorithms that detect patterns. Audit inputs and begin with simple baselines, since missing values, inconsistent meanings, and shifting data can mislead even sophisticated models. Search and recommendations improve when text, links, and user behavior complement one another. Test classifiers on genuinely unfamiliar cases, measure errors by their real costs, and combine models only when their mistakes differ. Algorithm order and response time also shape what users get.
Contains spoilers

Last updated:

Report Issue

Review Summary

3.62 out of 5
Average of 130 ratings from Goodreads and Amazon.

The reviews for Algorithms of the Intelligent Web are mixed, with ratings ranging from 2 to 4 stars. Critics praise the book's theoretical references and overview of intelligent algorithms but criticize its outdated code examples, messy writing style, and difficulty to follow. Some readers find it helpful for understanding recommendation engines and classification algorithms, while others feel it lacks clear explanations of the underlying mechanisms. The book is recommended for those with a strong background in statistics and mathematics involved in intelligent software development.

Your rating:
4.17
88 ratings
Want to read the full book?

Glossary

triangle of intelligence

three ingredients for adaptation

The book’s model of an intelligent application as the combination of aggregated content, reference structures, and algorithms. Aggregated content supplies examples; reference structures provide ways to interpret or organize them; algorithms extract patterns, make predictions, or adjust the system’s response. The term emphasizes that intelligence depends on the interaction of all three parts, not on an algorithm alone.

PageRank

link-based page importance

A method for estimating the relative importance of pages in a linked network. It treats a link as a recommendation and gives greater weight to links from important pages. The calculation iterates until page scores stabilize. A random-jump mechanism prevents dead ends and endless link loops, while the resulting scores can be combined with text-match scores to rank search results.

DocRank

content-based document ranking

The book’s adaptation of link-analysis ideas for documents that have no explicit hyperlinks. It constructs weighted relationships between documents from shared, frequent terms, then uses a PageRank-like calculation to derive reusable importance scores. The authors present it as an experimental approach whose value depends on the documents and the chosen measure of relationship.

collaborative filtering

recommendations from behavior

A recommendation approach that uses users’ prior choices, ratings, or other interactions rather than relying primarily on descriptions of the items. It can find users with similar histories and use their ratings to predict interest, or find items with similar rating patterns. Its quality depends on sufficient interaction data and an appropriate similarity measure.

ROCK

clustering by shared neighbors

Robust Clustering Using Links is a hierarchical clustering method presented for categorical or Boolean data. It first identifies neighboring points using a similarity threshold, then favors merging groups whose members share many neighbors. Its link-based goodness measure helps distinguish clusters that happen to contain a close pair from groups with broader evidence of connection.

DBSCAN

density-based cluster discovery

Density-Based Spatial Clustering of Applications with Noise groups data points by the density of nearby points. A point is a core point when its neighborhood contains enough members; nearby border points can join its cluster, while isolated points can be marked as noise. Its results depend on the neighborhood radius and minimum-point settings, as well as the distance measure.

probability-based classification

A classifier based on Bayes’ theorem. It estimates how likely an instance belongs to each known class by combining class frequencies with the probabilities of observed attribute values. Its simplifying assumption is that the attributes contribute independently to the likelihood. Despite that assumption, the book demonstrates its use in email categorization and user-specific search ranking.

bagging

voting across resampled models

Short for bootstrap aggregating, bagging trains multiple classifiers on datasets sampled with replacement from an original labeled set, then combines their predictions, commonly through majority vote. The resampling can make models attend to different aspects of the data. The method is most useful when the base classifier is unstable and produces varied predictions under small changes to training examples.

arc-x4

adaptive resampling ensemble

A boosting algorithm described by Leo Breiman in which training examples are assigned weights that change according to classification errors. New training samples favor examples that earlier classifiers handled poorly, and the ensemble combines the resulting classifiers. The “x4” refers to the fourth-power operation used in its weight update. The book characterizes the method as heuristic rather than a uniquely derived formula.

About the Author

Haralambos Marmanis is the author of "Algorithms of the Intelligent Web." Haralambos Marmanis is an expert in the field of intelligent algorithms and web technologies. His work focuses on developing sophisticated algorithms for web-based applications, particularly in areas such as data analysis, machine learning, and artificial intelligence. Marmanis has extensive experience in both academic and industry settings, contributing to the advancement of intelligent web technologies. His book aims to provide readers with practical insights into implementing intelligent algorithms for web applications, drawing from his expertise in the field. Marmanis is known for his ability to bridge the gap between theoretical concepts and practical implementation in the realm of intelligent web algorithms.

Download PDF

To save this Algorithms of the Intelligent Web summary for later, download the free PDF. You can print it out, or read offline at your convenience.
Download PDF
File size: 0.31 MB     Pages: 16

Download EPUB

To read this Algorithms of the Intelligent Web summary on your e-reader device or app, download the free EPUB. The .epub digital book format is ideal for reading ebooks on phones, tablets, and e-readers.
Download EPUB
File size: 1.37 MB     Pages: 20
Want to read the full book?
Follow
Listen
Home
Swipe
Library
Get App
Try Full Access for 3 Days
Listen, bookmark, and more
Compare Features Free Pro
📖 Read Summaries
Read unlimited summaries. Free users get 3 per month
🎧 Listen to Summaries
Listen to unlimited summaries in 40 languages
—
❤️ Unlimited Bookmarks
Free users are limited to 4
—
📜 Unlimited History
Free users are limited to 4
—
📥 Unlimited Downloads
Free users are limited to 1
—
Risk-Free Timeline
Today: Get Instant Access
Listen to full summaries of 26,000+ books. That's 12,000+ hours of audio!
Day 2: Trial Reminder
We'll send you a notification that your trial is ending soon.
Day 3: Your subscription begins
You'll be charged on Nov 26,
cancel anytime before.
Consume 2.8× More Books
2.8× more books Listening Reading
Our users love us
1M+ readers
Trustpilot Rating
TrustPilot
4.6 Excellent
This site is a total game-changer. I've been flying through book summaries like never before. Highly, highly recommend.
— Dave G
Worth my money and time, and really well made. I've never seen this quality of summaries on other websites. Very helpful!
— Em
Highly recommended!! Fantastic service. Perfect for those that want a little more than a teaser but not all the intricate details of a full audio book.
— Greg M
Save 62%
Yearly
$119.88 $44.99/year/yr
$3.75/mo
Monthly
$9.99/mo
Start a 3-Day Free Trial
3 days free, then $44.99/year. Cancel anytime.
Unlock a world of fiction & nonfiction books
26,000+ books for the price of 2 books
Read any book in 10 minutes
Discover new books like Tinder
Request any book if it's not summarized
Read more books than anyone you know
#1 app for book lovers
Lifelike & immersive summaries
30-day money-back guarantee
Download summaries in EPUBs or PDFs
Cancel anytime in a few clicks

Why one summary?

Scanner
Find a barcode to scan

⭐
⭐
⭐
We have a special gift for you
Open
38% off
DISCOUNT FOR YOU
⭐
⭐
⭐
$79.99
$49.99/year
Only $4.16 per month
Continue
2 taps to start, super easy to cancel
Settings
General
Widget
Loading...