当前位置: 首页 > article >正文

用100道题拿下你的算法面试(链表篇-7):复制带随机指针的链表

一、面试问题给定一个链表的头节点链表中每个节点都包含两个指针一个指向下一个节点的next指针以及一个指向链表中任意节点的random指针。请复制该链表并返回新链表的头节点。二、【朴素解法】使用哈希表 —— 时间复杂度 O (n)空间复杂度 O (n)(一) 解法思路核心思路是为原链表中的每个节点创建一个对应的新节点并将这些节点存储在哈希表中然后更新新节点的next指针和random指针。创建一个哈希表mp用于映射原节点到新节点。遍历原链表对每个节点curr创建一个对应的新节点并存储到哈希表中mp[curr] new Node()。再次遍历链表更新新节点的next和random指针mp[curr]-next mp[curr-next]mp[curr]-random mp[curr-random]返回mp[head]作为复制后链表的头节点。(二) 使用 5 种语言实现1. C#include iostream #include unordered_map using namespace std; class Node { public: int data; Node* next; Node* random; Node(int x) { data x; next random NULL; } }; Node* cloneLinkedList(Node* head) { unordered_mapNode*, Node* mp; Node *curr head; // 遍历原链表存储与原节点对应的新节点 while (curr ! NULL) { mp[curr] new Node(curr-data); curr curr-next; } curr head; // 循环更新新节点的 next 和 random 指针 while (curr ! NULL) { mp[curr]-next mp[curr-next]; mp[curr]-random mp[curr-random]; curr curr-next; } return mp[head]; } void printList(Node* head) { while (head ! NULL) { cout head-data (; if(head-random) cout head-random-data ); else cout null ); if(head-next ! NULL) cout - ; head head-next; } cout endl; } int main() { // 创建带随机指针的链表 Node* head new Node(1); head-next new Node(2); head-next-next new Node(3); head-next-next-next new Node(4); head-next-next-next-next new Node(5); head-random head-next-next; head-next-random head; head-next-next-random head-next-next-next-next; head-next-next-next-random head-next-next; head-next-next-next-next-random head-next; // 打印原始链表 cout Original linked list:\n; printList(head); Node* clonedList cloneLinkedList(head); // 打印复制后的链表 cout Cloned linked list:\n; printList(clonedList); return 0; }2. Javaimport java.util.HashMap; import java.util.Map; class Node { int data; Node next; Node random; Node(int x) { data x; next null; random null; } } class DSA { static Node cloneLinkedList(Node head) { MapNode, Node mp new HashMap(); Node curr head; // 遍历原链表存储与原节点对应的新节点 while (curr ! null) { mp.put(curr, new Node(curr.data)); curr curr.next; } curr head; // 循环更新新节点的 next 和 random 指针 while (curr ! null) { Node newNode mp.get(curr); newNode.next mp.get(curr.next); newNode.random mp.get(curr.random); curr curr.next; } return mp.get(head); } static void printList(Node head) { while (head ! null) { System.out.print(head.data (); if (head.random ! null) System.out.print(head.random.data )); else System.out.print(null )); if (head.next ! null) System.out.print( - ); head head.next; } System.out.println(); } public static void main(String[] args) { // 创建带随机指针的链表 Node head new Node(1); head.next new Node(2); head.next.next new Node(3); head.next.next.next new Node(4); head.next.next.next.next new Node(5); head.random head.next.next; head.next.random head; head.next.next.random head.next.next.next.next; head.next.next.next.random head.next.next; head.next.next.next.next.random head.next; // 打印原始链表 System.out.println(Original linked list:); printList(head); Node clonedList cloneLinkedList(head); // 打印复制后的链表 System.out.println(Cloned linked list:); printList(clonedList); } }3. Pythonclass Node: def __init__(self, x): self.data x self.next None self.random None def cloneLinkedList(head): nodeMap {} curr head # 遍历原链表存储与原节点对应的新节点 while curr is not None: nodeMap[curr] Node(curr.data) curr curr.next curr head # 循环更新新节点的 next 和 random 指针 while curr is not None: newNode nodeMap[curr] newNode.next nodeMap.get(curr.next) newNode.random nodeMap.get(curr.random) curr curr.next return nodeMap.get(head) def printList(head): curr head while curr is not None: print(f{curr.data}(, end) if curr.random: print(f{curr.random.data}), end) else: print(null), end) if curr.next is not None: print( - , end) curr curr.next print() if __name__ __main__: # 创建带随机指针的链表 head Node(1) head.next Node(2) head.next.next Node(3) head.next.next.next Node(4) head.next.next.next.next Node(5) head.random head.next.next head.next.random head head.next.next.random head.next.next.next.next head.next.next.next.random head.next.next head.next.next.next.next.random head.next # 打印原始链表 print(Original linked list:) printList(head) clonedList cloneLinkedList(head) # 打印复制后的链表 print(Cloned linked list:) printList(clonedList)4. C#using System; using System.Collections.Generic; class Node { public int Data; public Node Next; public Node Random; public Node(int x) { Data x; Next null; Random null; } } class DSA { static Node cloneLinkedList(Node head) { DictionaryNode, Node mp new DictionaryNode, Node(); Node curr head; // 遍历原链表存储与原节点对应的新节点 while (curr ! null) { mp[curr] new Node(curr.Data); curr curr.Next; } curr head; // 循环更新新节点的 next 和 random 指针 while (curr ! null) { Node newNode mp[curr]; if(curr.Next ! null) newNode.Next mp[curr.Next]; newNode.Random mp[curr.Random]; curr curr.Next; } return mp[head]; } static void PrintList(Node head) { while (head ! null) { Console.Write(head.Data (); if (head.Random ! null) Console.Write(head.Random.Data); else Console.Write(null); Console.Write()); if (head.Next ! null) Console.Write( - ); head head.Next; } Console.WriteLine(); } static void Main(string[] args) { // 创建带随机指针的链表 Node head new Node(1); head.Next new Node(2); head.Next.Next new Node(3); head.Next.Next.Next new Node(4); head.Next.Next.Next.Next new Node(5); head.Random head.Next.Next; head.Next.Random head; head.Next.Next.Random head.Next.Next.Next.Next; head.Next.Next.Next.Random head.Next.Next; head.Next.Next.Next.Next.Random head.Next; // 打印原始链表 Console.WriteLine(Original linked list:); PrintList(head); Node clonedList cloneLinkedList(head); // 打印复制后的链表 Console.WriteLine(Cloned linked list:); PrintList(clonedList); } }5. JavaScriptclass Node { constructor(data) { this.data data; this.next null; this.random null; } } function cloneLinkedList(head) { const mp new Map(); let curr head; // 遍历原链表存储与原节点对应的新节点 while (curr ! null) { mp.set(curr, new Node(curr.data)); curr curr.next; } curr head; // 循环更新新节点的 next 和 random 指针 while (curr ! null) { const newNode mp.get(curr); newNode.next mp.get(curr.next) || null; newNode.random mp.get(curr.random) || null; curr curr.next; } return mp.get(head) || null; } function printList(head) { let result ; while (head ! null) { result head.data (; result head.random ? head.random.data : null; result ); if (head.next ! null) { result - ; } head head.next; } console.log(result); } // 驱动代码 // 创建带随机指针的链表 const head new Node(1); head.next new Node(2); head.next.next new Node(3); head.next.next.next new Node(4); head.next.next.next.next new Node(5); head.random head.next.next; head.next.random head; head.next.next.random head.next.next.next.next; head.next.next.next.random head.next.next; head.next.next.next.next.random head.next; // 打印原始链表 console.log(Original linked list:); printList(head); const clonedList cloneLinkedList(head); // 打印复制后的链表 console.log(Cloned linked list:); printList(clonedList);(三)代码输出和算法复杂度输出Original linked list: 1(3) - 2(1) - 3(5) - 4(3) - 5(2) Cloned linked list: 1(3) - 2(1) - 3(5) - 4(3) - 5(2)时间复杂度O(n)。空间复杂度O(n)。三、【最优方法】原地插入节点 —— 时间复杂度 O (n)空间复杂度 O (1)(一) 解法思路核心思路创建原节点的副本不使用哈希表存储而是将副本节点直接插入到原节点与下一个节点之间这样新节点会出现在交替位置上。遍历链表在每个原节点后面插入一个克隆节点。对每个节点 X创建 X并放置为X → X → next。再次遍历链表更新克隆节点的 random 指针。规则X.random X.random.next如果 random 指针存在。第三次遍历链表将两个链表拆分恢复原链表的链接并提取出克隆链表。修正指针原节点.next 原节点.next.next克隆节点.next 克隆节点.next.next返回克隆链表的头节点。(二) 使用 5 种语言实现1. C#include iostream using namespace std; class Node { public: int data; Node *next, *random; Node(int x) { data x; next random NULL; } }; Node* cloneLinkedList(Node* head) { if (head NULL) { return NULL; } // 创建新节点并将其插入到原节点的下一个位置 Node* curr head; while (curr ! NULL) { Node* newNode new Node(curr-data); newNode-next curr-next; curr-next newNode; curr newNode-next; } // 设置新节点的随机指针 curr head; while (curr ! NULL) { if (curr-random ! NULL) curr-next-random curr-random-next; curr curr-next-next; } // 将新节点与原节点分离 curr head; Node* clonedHead head-next; Node* clone clonedHead; while (clone-next ! NULL) { // 更新原节点和克隆节点的下一个节点 curr-next curr-next-next; clone-next clone-next-next; // 将原链表和克隆链表的指针移动到各自的下一个节点 curr curr-next; clone clone-next; } curr-next NULL; clone-next NULL; return clonedHead; } void printList(Node* head) { while (head ! NULL) { cout head-data (; if(head-random) cout head-random-data ); else cout null ); if(head-next ! NULL) cout - ; head head-next; } cout endl; } int main() { // 创建带随机指针的链表 Node* head new Node(1); head-next new Node(2); head-next-next new Node(3); head-next-next-next new Node(4); head-next-next-next-next new Node(5); head-random head-next-next; head-next-random head; head-next-next-random head-next-next-next-next; head-next-next-next-random head-next-next; head-next-next-next-next-random head-next; // 打印原始链表 cout Original linked list:\n; printList(head); Node* clonedList cloneLinkedList(head); // 打印克隆后的链表 cout Cloned linked list:\n; printList(clonedList); return 0; }2. Javaclass Node { int data; Node next, random; Node(int x) { data x; next random null; } } class DSA { static Node cloneLinkedList(Node head) { if (head null) { return null; } // 创建新节点并将其插入到原节点的下一个位置 Node curr head; while (curr ! null) { Node newNode new Node(curr.data); newNode.next curr.next; curr.next newNode; curr newNode.next; } // 设置新节点的随机指针 curr head; while (curr ! null) { if (curr.random ! null) { curr.next.random curr.random.next; } curr curr.next.next; } // 将新节点与原节点分离 curr head; Node clonedHead head.next; Node clone clonedHead; while (clone.next ! null) { // 更新原节点和克隆节点的下一个节点 curr.next curr.next.next; clone.next clone.next.next; // 将原链表和克隆链表的指针移动到各自的下一个节点 curr curr.next; clone clone.next; } curr.next null; clone.next null; return clonedHead; } static void printList(Node head) { while (head ! null) { System.out.print(head.data (); if (head.random ! null) { System.out.print(head.random.data); } else { System.out.print(null); } System.out.print()); if (head.next ! null) { System.out.print( - ); } head head.next; } System.out.println(); } public static void main(String[] args) { // 创建带随机指针的链表 Node head new Node(1); head.next new Node(2); head.next.next new Node(3); head.next.next.next new Node(4); head.next.next.next.next new Node(5); head.random head.next.next; head.next.random head; head.next.next.random head.next.next.next.next; head.next.next.next.random head.next.next; head.next.next.next.next.random head.next; // 打印原始链表 System.out.println(Original linked list:); printList(head); Node clonedList cloneLinkedList(head); // 打印克隆后的链表 System.out.println(Cloned linked list:); printList(clonedList); } }3. Pythonclass Node: def __init__(self, x): self.data x self.next None self.random None def cloneLinkedList(head): if head is None: return None # 创建新节点并将其插入到原节点的下一个位置 curr head while curr is not None: newNode Node(curr.data) newNode.next curr.next curr.next newNode curr newNode.next # 设置新节点的随机指针 curr head while curr is not None: if curr.random is not None: curr.next.random curr.random.next curr curr.next.next # 将新节点与原节点分离 curr head clonedHead head.next clone clonedHead while clone.next is not None: # 更新原节点和克隆节点的下一个节点 curr.next curr.next.next clone.next clone.next.next # 将原链表和克隆链表的指针移动到各自的下一个节点 curr curr.next clone clone.next curr.next None clone.next None return clonedHead def printList(head): while head is not None: print(f{head.data}(, end) if head.random: print(f{head.random.data}), end) else: print(null), end) if head.next is not None: print( - , end) head head.next print() if __name__ __main__: # 创建带随机指针的链表 head Node(1) head.next Node(2) head.next.next Node(3) head.next.next.next Node(4) head.next.next.next.next Node(5) head.random head.next.next head.next.random head head.next.next.random head.next.next.next.next head.next.next.next.random head.next.next head.next.next.next.next.random head.next # 打印原始链表 print(Original linked list:) printList(head) clonedList cloneLinkedList(head) # 打印克隆后的链表 print(Cloned linked list:) printList(clonedList)4. C#using System; using System.Collections.Generic; class Node { public int Data; public Node Next, Random; public Node(int x) { Data x; Next Random null; } } class DSA { static Node cloneLinkedList(Node head) { if (head null) return null; // 创建新节点并将其插入到原节点的下一个位置 Node curr head; while (curr ! null) { Node newNode new Node(curr.Data); newNode.Next curr.Next; curr.Next newNode; curr newNode.Next; } // 设置新节点的随机指针 curr head; while (curr ! null) { if (curr.Random ! null) curr.Next.Random curr.Random.Next; curr curr.Next.Next; } // 将新节点与原节点分离 curr head; Node clonedHead head.Next; Node clone clonedHead; while (clone.Next ! null) { // 更新原节点和克隆节点的下一个节点 curr.Next curr.Next.Next; clone.Next clone.Next.Next; // 将原链表和克隆链表的指针移动到各自的下一个节点 curr curr.Next; clone clone.Next; } curr.Next null; clone.Next null; return clonedHead; } static void printList(Node head) { while (head ! null) { Console.Write(head.Data (); if (head.Random ! null) Console.Write(head.Random.Data )); else Console.Write(null)); if (head.Next ! null) Console.Write( - ); head head.Next; } Console.WriteLine(); } public static void Main() { // 创建带随机指针的链表 Node head new Node(1); head.Next new Node(2); head.Next.Next new Node(3); head.Next.Next.Next new Node(4); head.Next.Next.Next.Next new Node(5); head.Random head.Next.Next; head.Next.Random head; head.Next.Next.Random head.Next.Next.Next.Next; head.Next.Next.Next.Random head.Next.Next; head.Next.Next.Next.Next.Random head.Next; // 打印原始链表 Console.WriteLine(Original linked list:); printList(head); Node clonedList cloneLinkedList(head); // 打印克隆后的链表 Console.WriteLine(Cloned linked list:); printList(clonedList); } }5. JavaScriptclass Node { constructor(data) { this.data data; this.next null; this.random null; } } function cloneLinkedList(head) { if (head null) { return null; } // 创建新节点并将其插入到原节点的下一个位置 let curr head; while (curr ! null) { let newNode new Node(curr.data); newNode.next curr.next; curr.next newNode; curr newNode.next; } // 设置新节点的随机指针 curr head; while (curr ! null) { if (curr.random ! null) { curr.next.random curr.random.next; } curr curr.next.next; } // 将新节点与原节点分离 curr head; let clonedHead head.next; let clone clonedHead; while (clone.next ! null) { // 更新原节点和克隆节点的下一个节点 curr.next curr.next.next; clone.next clone.next.next; // 将原链表和克隆链表的指针移动到各自的下一个节点 curr curr.next; clone clone.next; } curr.next null; clone.next null; return clonedHead; } function printList(head) { let result ; while (head ! null) { result head.data (; result head.random ? head.random.data : null; result ); if (head.next ! null) { result - ; } head head.next; } console.log(result); } // 创建带随机指针的链表 let head new Node(1); head.next new Node(2); head.next.next new Node(3); head.next.next.next new Node(4); head.next.next.next.next new Node(5); head.random head.next.next; head.next.random head; head.next.next.random head.next.next.next.next; head.next.next.next.random head.next.next; head.next.next.next.next.random head.next; // 打印原始链表 console.log(Original linked list:); printList(head); let clonedList cloneLinkedList(head); // 打印克隆后的链表 console.log(Cloned linked list:); printList(clonedList);(三)代码输出和算法复杂度输出Original linked list: 1(3) - 2(1) - 3(5) - 4(3) - 5(2) Cloned linked list: 1(3) - 2(1) - 3(5) - 4(3) - 5(2)时间复杂度O(n)。空间复杂度O(1)。

相关文章:

用100道题拿下你的算法面试(链表篇-7):复制带随机指针的链表

一、面试问题 给定一个链表的头节点,链表中每个节点都包含两个指针:一个指向下一个节点的 next 指针,以及一个指向链表中任意节点的 random 指针。请复制该链表,并返回新链表的头节点。 二、【朴素解法】使用哈希表 —— 时间复杂…...

3dmax动画期末作业全流程分享(附技术细节+避坑指南)

前言:期末将至,相信很多学习3dmax的小伙伴都在为动画期末作业发愁——从创意构思到建模、动画制作,再到渲染输出,每一步都可能遇到各种问题。本次就结合我的期末作业实践,详细分享从前期准备到成品交付的完整流程&…...

利用示波器直方图功能低成本测量信号抖动的方法与实践

1. 项目概述:用直方图低成本测量抖动在嵌入式系统、高速数字接口乃至电机控制的设计与调试中,信号抖动(Jitter)的测量和分析是一个绕不开的坎。无论是为了确保通信链路的误码率,还是为了验证时钟信号的纯净度&#xff…...

LangChain集成MCP协议:构建模块化AI应用的新范式

1. 项目概述:当LangChain遇见MCP,构建下一代AI应用的新范式如果你最近在捣鼓LangChain,想给AI应用加点“料”,比如让它能实时查询数据库、调用外部API,甚至控制智能家居,那你大概率会遇到一个核心痛点&…...

终极UE4SS游戏Mod开发指南:从零开始掌握虚幻引擎脚本系统

终极UE4SS游戏Mod开发指南:从零开始掌握虚幻引擎脚本系统 【免费下载链接】RE-UE4SS Injectable LUA scripting system, SDK generator, live property editor and other dumping utilities for UE4/5 games 项目地址: https://gitcode.com/gh_mirrors/re/RE-UE4S…...

2026中小企业OA软件排行榜TOP10(精简版)

2026年,中小企业数字化转型进入深水区,OA软件作为办公协同核心工具,是企业提升效率、规范流程、降本增效的关键支撑。随着SaaS模式普及、AI技术深度应用及信创政策落地,OA市场呈现“头部生态下沉、专业工具崛起、性价比为王”的格…...

Python自动化交易:Kalshi预测市场API封装与量化策略实践

1. 项目概述:一个为Kalshi预测市场打造的自动化工具箱如果你对预测市场感兴趣,或者正在寻找一种程序化的方式来管理你在Kalshi平台上的交易活动,那么你可能会对这个名为kalshi-skill的项目产生共鸣。简单来说,这是一个基于Python的…...

Codepack:标准化开发配置与自动化工具链的工程实践

1. 项目概述:一个为开发者准备的“代码行囊” 最近在GitHub上闲逛,发现了一个挺有意思的项目,叫 JasonLovesDoggo/codepack 。乍一看名字,你可能会觉得这又是一个普通的代码库或者工具集。但点进去仔细研究后,我发现…...

017、GPS原理与定位基础

飞控算法从入门到精通 017 | GPS原理与定位基础 一、一次深夜炸机的教训 去年在郊外调试一架四轴,飞控是自研的Pixhawk变体,GPS模块用的u-blox M8N。起飞后悬停正常,切到Loiter模式后飞机开始缓慢漂移,大约30秒后突然朝东北方向加速,我切回Stabilize已经来不及——眼睁…...

WaveTools:鸣潮玩家的终极优化工具箱,轻松解锁120FPS流畅体验

WaveTools:鸣潮玩家的终极优化工具箱,轻松解锁120FPS流畅体验 【免费下载链接】WaveTools 🧰鸣潮工具箱 项目地址: https://gitcode.com/gh_mirrors/wa/WaveTools 你是否曾经在《鸣潮》的激烈战斗中感受到画面卡顿?是否因为…...

Python爬虫实战:用urllib和正则搞定E-Hentai图片批量下载(附完整代码与避坑指南)

Python高效爬虫实战:多线程下载与智能错误处理 引言 在当今数据驱动的时代,网络爬虫已成为获取互联网信息的重要工具。对于开发者而言,掌握高效的爬虫技术不仅能提升工作效率,还能解决许多实际业务场景中的数据采集需求。本文将深…...

016、气压计原理与高度测量

飞控算法从入门到精通 016 气压计原理与高度测量 一、一次炸机带来的教训 去年夏天,我在一个四轴飞行器上调试定高悬停。气压计用的是MS5611,数据手册翻烂了,滤波算法也上了,地面站里高度曲线看着挺平滑。结果一上天,飞机像喝醉了酒——先是莫名其妙往下掉半米,然后猛…...

MTKClient实战指南:联发科设备刷机与逆向工程全面解决方案

MTKClient实战指南:联发科设备刷机与逆向工程全面解决方案 【免费下载链接】mtkclient MTK reverse engineering and flash tool 项目地址: https://gitcode.com/gh_mirrors/mt/mtkclient MTKClient是一款专为联发科芯片设备设计的开源逆向工程与刷机工具&am…...

在Linux Mint上搞定Synopsys VCS和Verdi 2018.06:一个学生党的完整踩坑与配置实录

在Linux Mint上搞定Synopsys VCS和Verdi 2018.06:一个学生党的完整踩坑与配置实录 作为一名微电子专业的学生,第一次接触Synopsys的VCS和Verdi工具时,我完全被它们的强大功能所震撼。然而,当我在自己的Linux Mint系统上尝试安装这…...

可观测性技术栈选型指南:从Prometheus到OpenTelemetry的实践路径

1. 项目概述:一个可观测性技术栈的“藏宝图”如果你正在构建或维护一个现代化的、需要高可靠性的软件系统,那么“可观测性”这个词对你来说一定不陌生。它早已超越了传统的监控,成为确保系统健康、快速定位问题的核心能力。然而,当…...

保姆级避坑指南:用GGCNN源码处理Cornell抓取数据集,解决tiff文件生成失败问题

GGCNN源码实战:Cornell数据集预处理深度排错指南 第一次运行GGCNN的Cornell数据集预处理脚本时,我盯着毫无反应的终端窗口足足等了十分钟——没有进度条,没有错误提示,只有光标在无情地闪烁。这大概是每个复现论文的开发者都会经历…...

自然语言脚本编程:用humanscript实现意图驱动的自动化

1. 项目概述:当代码遇上自然语言最近在折腾一些自动化脚本时,我总在想,有没有一种方式,能让写脚本这件事变得像写待办事项清单一样简单?比如,我想让电脑“把今天下载的图片都压缩一下,然后传到网…...

基于Next.js 15与React 19构建现代化个人作品集:技术选型与工程实践

1. 项目概述:为什么选择 Next.js 15 构建现代个人作品集 作为一名在前后端领域摸爬滚打了十多年的开发者,我见过也亲手搭建过无数种个人作品集网站。从早期的纯静态 HTML/CSS,到 jQuery 时代,再到 React/Vue 等框架的兴起&#x…...

模型运行记录

1753...

Fomu FPGA工作坊:从LED闪烁到RISC-V软核的微型硬件开发指南

1. 项目概述:当FPGA遇见指尖,一场硬件的微型革命如果你对嵌入式开发、硬件编程感兴趣,但又觉得传统的FPGA开发板笨重、昂贵且入门门槛高,那么im-tomu/fomu-workshop这个项目可能会让你眼前一亮。这不仅仅是一个代码仓库&#xff0…...

量子信号处理技术及其在离子阱系统中的应用

1. 量子信号处理技术概述量子信号处理(Quantum Signal Processing, QSP)是近年来量子计算领域涌现的一项基础性技术,它通过精心设计的量子比特旋转序列,实现对量子数据的系统性多项式变换。这项技术的核心价值在于,它为…...

数据中台下半场比的是治理:六家主流厂商四维度横向测评

一、数据治理:决定数据中台价值兑现的关键变量2026年,一个行业的共识正在变得清晰:数据中台的上限由计算架构决定,但下限由数据治理决定。过去数年,大量企业投入资源搭建了数据中台的基础设施——数据湖、数仓、调度引…...

FreeVA:零训练成本,用图像大模型实现视频理解的新范式

1. 项目概述:一个无需训练的“零成本”视频助手 最近在折腾多模态大模型(MLLM)的时候,我发现了一个挺有意思的现象:大家一提到让模型理解视频,第一反应就是得搞“视频指令微调”。简单说,就是拿…...

权限割裂、数据延迟、协同断点——Gemini Workspace整合失败的90%源于这4个配置盲区

更多请点击: https://intelliparadigm.com 第一章:权限割裂、数据延迟、协同断点——Gemini Workspace整合失败的90%源于这4个配置盲区 在企业级部署 Gemini Workspace 时,大量团队遭遇“功能可登录但协作不可用”的隐性故障。根本原因并非 …...

语言启蒙到底要不要背单词

语言启蒙阶段到底要不要背单词?我更愿意把这个问题换一种问法:这些词是不是能和声音、图像、语境连起来,并且隔几天还能回来一次。 如果只是拿一张词表硬记,入门用户很容易觉得枯燥。可如果完全不接触词汇,后面的听读…...

【AI】短期记忆:会话上下文管理与实现

短期记忆:会话上下文管理与实现 📝 本章学习目标:本章深入探讨记忆机制,这是AI Agent持续执行的关键能力。通过本章学习,你将全面掌握"短期记忆:会话上下文管理与实现"这一核心主题。 一、引言&a…...

droidrun-agent:基于MCP协议连接AI智能体与安卓设备的自动化桥梁

1. 项目概述:当AI助手需要“动手”时在AI Agent(智能体)领域,我们常常遇到一个瓶颈:模型可以生成完美的计划、写出漂亮的代码,但它如何与真实世界交互,尤其是如何操作一台物理设备?比…...

NSA 5G:从双连接到网络切片,解析5G组网演进之路

1. 非独立组网5G:一场关于“先有鸡还是先有蛋”的行业博弈如果你在2017年的世界移动通信大会(MWC)现场,可能会感到一丝困惑。前一年,整个行业还在为5G描绘一幅彻底颠覆4G、开启万物互联新纪元的宏伟蓝图。然而一年后&a…...

数字信号处理中的统计与概率基础解析

1. 数字信号处理中的统计与概率基础 在数字信号处理(DSP)领域,统计和概率理论构成了分析和处理信号的核心数学工具。信号在采集、传输和处理过程中不可避免地会受到各种干扰和噪声的影响,这些干扰可能来自测量系统本身&#xff0c…...

高速SerDes设计中BER预测的智能应力输入方法

1. 高速串行链路设计中的BER预测挑战在当今高速数字系统设计中,SerDes(串行器/解串器)技术已成为主流接口方案,数据传输速率已突破10Gbps大关。随着速率提升,信号完整性(SI)问题日益突出,其中误码率(BER)预…...