原创 Kmeans算法

Kmeans算法Python實現 #!/usr/bin/env python # coding=utf-8 import numpy as np import random import matplotlib.pyp

原创 常用算法與數據結構(python實現)

快速排序 #考慮數據[1,3,5,7,4,6,2] def partition(arr,low,high): #以arr[low]爲基準將數組劃分爲兩個部分 key = arr[low] while low < hig

原创 劍指offer刷題

今天是2019年6日12日,前面的時間一直對找工作不太上心,最近還是要調整一下狀態,好好準備一下面試筆試,因此鞭策自己每天刷題,作此記錄。 (1)機器人的運動範圍:https://www.acwing.com/problem/co

原创 YouTube-8M

w

原创 Google KickStart 2019 A輪

題目一:訓練 作爲一名學校足球教練,你的任務是挑選一支由P個學生組成的團隊代表你的學校。 共有N名學生供你挑選,第 i 名學生的技術等級爲Si ,這是一個正整數,表示他們的技術水平。 在你看來一個合理的團隊中的P個球員的技術應該是相當

原创 BP算法與累積BP算法

西瓜書5.5:試編程實現BP算法與累積BP算法,在西瓜數據集3.0上分別用這兩個算法訓練一個單隱層網絡,並進行比較。 BP算法matlab實現 clear x = xlsread('watermelon3.0.xlsx', 'She

原创 Python調用ffmpeg對視頻抽幀

1.安裝ffmpfg sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next sudo apt-get update sudo apt-get install ffmpeg

原创 python爬MP4網絡視頻

#!/usr/bin/python import re import urllib import os def getHtml(url): page=urllib.urlopen(url) html=p

原创 如何把鏈表以K個節點爲一組進行翻轉

假設給定鏈表爲1->2->3->4->5->6->7和一個數K。若K爲2,則翻轉後的鏈表爲2->1->4->3->6->5->7,若K爲3,則翻轉後的鏈表爲3->2->1->6->5->4->7. #對不帶頭節點的鏈表進行翻轉 def

原创 合肥 VALSE 2019 筆記 workshop:視覺與語言相結合在實際中的應用

報告人1:朱文武(清華大學) /現場實際講者是他的一個博士生 報告題目:Cross-media Analysis and Intelligence

原创 LeetCode刷題_300.Longest Increasing Subsequence

Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7

原创 LeetCode刷題_53. Maximum Subarray

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum

原创 LeetCode刷題_138.Copy List with Random Pointer

原題鏈接:https://leetcode.com/problems/copy-list-with-random-pointer/description/ A linked list is given such that each n

原创 推理文章小結

w