Loading

摘要: Given an array of non-negative integers arr, you are initially positioned at start index of the array. When you are at index i, you can jump to i + ar 阅读全文
posted @ 2021-12-09 18:05 aalanwyr 阅读(56) 评论(0) 推荐(0)
摘要: 1、什么是Embarrassingly Parallel(易并行计算问题) 易并行计算问题:A computation that can be divided into a number of completely independent tasks。在编写并行程序过程中,首先需要将一个问题分解成若 阅读全文
posted @ 2021-12-09 16:26 aalanwyr 阅读(2537) 评论(1) 推荐(1)
摘要: 这篇帖子是对常用的平行计算问题方法的汇总,俗话说API好学,但是算法难用。除了需要了解常用的并行计算API(MPI、Pthread、openMP),更重要是要学会如何将串行问题(serial programming)进行合理的拆分,从而编写出能够并行计算的程序。 程序顺序执行、串行编写比较符合咱们的 阅读全文
posted @ 2021-12-09 13:11 aalanwyr 阅读(619) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between the sum of all l 阅读全文
posted @ 2021-12-09 00:20 aalanwyr 阅读(41) 评论(0) 推荐(0)