Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Triple Ref Pointers - Computerphile

September 1, 2017
by
Computerphile
YouTube video player
Triple Ref Pointers - Computerphile

TL;DR

The video discusses using pointers to pointers in the C programming language to simplify the insertion of items into an alphabetically ordered list.

Transcript

It's quite clear from the first of these that we've put out that people love the Lego model Or at least a lot of people do find it useful so yeah, we want to take it on a bit further today We have this pre-Prepared linked list of barbecue items which are all in alphabetical order and last time we covered about How would you insert a new item? Into ... Read More

Key Insights

  • 👂 Using pointers to pointers simplifies the insertion of items in an alphabetically ordered list.
  • ⏮️ Pointers to pointers allow for efficient navigation through the list without losing track of the previous item.
  • 🎅 The technique can be applied in the C programming language, making the insertion process cleaner and more straightforward.
  • 👨‍💻 Pointers to pointers eliminate the need for maintaining a separate pointer to the previous item, reducing complexity in the code.
  • 🪈 By using pointers to pointers, the program can easily insert items in the correct alphabetical order.
  • 💨 Pointers to pointers offer a powerful way to manipulate and organize data structures in programming languages.
  • 🥇 The technique was discovered and utilized in the ALGOL 68 programming language.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How does using pointers to pointers simplify the insertion of items in an alphabetically ordered list?

By using pointers to pointers, you can easily navigate the list without losing track of the previous item, making it simpler to insert items in alphabetical order.

Q: Can you provide an example of using pointers to pointers in the C programming language?

Sure, here's an example:

typedef struct {
   char* name;
} Thing;

void insertItem(Thing** tracer, char* itemName) {
   // Navigate the existing list using the tracer pointer
   Thing* current = *tracer;
   Thing* previous = NULL;
   
   while (current != NULL && strcmp(current->name, itemName) < 0) {
      previous = current;
      current = current->next;
   }
   
   // Create a new item
   Thing* newItem = malloc(sizeof(Thing));
   newItem->name = itemName;
   
   // Update the pointers to insert the new item
   if (previous == NULL) {
      newItem->next = *tracer;
      *tracer = newItem;
   } else {
      previous->next = newItem;
      newItem->next = current;
   }
}

Q: What is the advantage of using pointers to pointers over conventional techniques?

Using pointers to pointers eliminates the need for maintaining a separate pointer to the previous item, simplifying the insertion process. It also allows for easy navigation through the list and prevents losing track of the previous item.

Q: Does the technique of pointers to pointers work in other programming languages as well?

While this technique is specifically demonstrated in C, the concept of pointers to pointers can be applied in other programming languages that support pointers, although the syntax and implementation might differ.

Summary & Key Takeaways

  • The video introduces the concept of using pointers to pointers, also known as the triple ref technique, in the C programming language.

  • By using pointers to pointers, it becomes easier to insert items into an alphabetically ordered list without losing track of the previous item.

  • The technique involves creating a "tracer" pointer that points to a pointer to a thing, allowing for efficient navigation and insertion in the list.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Computerphile 📚

Mainframes and the Unix Revolution - Computerphile thumbnail
Mainframes and the Unix Revolution - Computerphile
Computerphile
Network Address Translation - Computerphile thumbnail
Network Address Translation - Computerphile
Computerphile
Error Detection and Flipping the Bits - Computerphile thumbnail
Error Detection and Flipping the Bits - Computerphile
Computerphile
The Problem with Time & Timezones - Computerphile thumbnail
The Problem with Time & Timezones - Computerphile
Computerphile
Computer Speeds - Computerphile thumbnail
Computer Speeds - Computerphile
Computerphile
Transport Layer Security (TLS) - Computerphile thumbnail
Transport Layer Security (TLS) - Computerphile
Computerphile

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.