2018年9月的全部文章
@kidultff

TensorFlow学习笔记(一)--张量、会话

对于任何一门编程语言,首先学习的都是定义变量常量,虽然接下来要讲的是Python TensorFlow,但是TensorFlow是不可以直接使用Python中定义的普通变量或常量的,TensorFlow要使用TensorFlow张量。一、TensorFlow张量运算TensorFlow中定义张量:a&nb ...
  • 0
  • 3
@kidultff

PAT-A 真题 – 1098 Insertion or Heap Sort

According to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input data, finds the location it bel ...
  • 0
  • 0
@kidultff

堆的定义和基本操作

0x00、堆堆是一种特殊的完全二叉树,堆分为大顶堆和小顶堆,其中大顶堆是指二叉树的任何一个非叶子结点都比其孩子大,小顶堆则反之。假设给定一个序列:其对应的大顶堆就可以是:小顶堆就是:那么这个程序怎样用C语言来实现呢?0x01、建堆我们使用 ...
  • 1
  • 7