Save this video free

Advanced Algorithms (Winter 2026-27) - 04-07 Depth-Bounded Search for Closest String

Sebastian Wild (Lectures) · 15:17 · Watch on YouTube

Part of University of Marburg CS 627. See all 14 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Advanced Algorithms (Winter 2026-27) - 04-07 Depth-Bounded Search for Closest String Watch on YouTube →

Overview

Closest String asks whether there is a length-L string within Hamming distance K of each of M input strings. A depth-bounded search starts from the first input string, uses dirty-column and triangle-inequality checks to prune impossible instances, and branches on K+1 mismatch positions; its search tree has size O(K^K), with distances maintainable incrementally.

Key takeaways

Chapters

0:00 Closest String and the Dirty-Column Bound
4:24 Depth-Bounded Search with Hamming-Distance Pruning
11:24 Branching on K+1 Mismatches and Search-Tree Cost

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 In the next section we look at yet another little problem that we can give a depth bounded search tree for. Uh in this case we'll end up with an even worse running time. So so far we've seen relatively small kernels and essentially singly exponential size search trees. And so maybe you get the feeling that that's all there is and so here's a little example where it's it's worse. It's a rather hard problem. Um the problem is called closest string. Um Was it in the list of NP-hard problems as well? Uh I think it was one one variant of this at least if it's not precisely the one. So what's the input? We're given strings all of the same length L.

0:51 And M of them. And the question is is there a way to find uh some other string little S that is rather close to all of them simultaneously. And close here means I want a sort of consensus string S that has Hamming distance at most K at most K uh positions differ. Hamming distance between this say if this is S then uh for every string it has to be mostly With maybe here a mismatch if there's two different characters A and B. And so on.

1:45 Uh then the Hamming distance is just the number of positions where there's a mismatch. Because the strings are all the same length the columns are perfectly aligned. So it seems a rather innocent problem if you think about it from from that perspective um why should it be so hard? But it turns out it's it's uh it's trickier than it looks. Um some easy observations to get started. Um if we look at our M strings, it's convenient to put them in one one little

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Sebastian Wild (Lectures).

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.