已知一個整數序列A=(a0,a1,…,an-1),其中0≤AI<n(0≤i<n)。若存在ap1=ap2=…=apm=x且m>n/2(0≤pk<n,1≤k≤m),則稱x為A的主元素。例如A= ( 0,5,5,3,5,7,5,5 ),則5為主元素;又如A= ( 0,5,5,3,5,1,5,7 ),則A中沒有主元素。 假設A中的n個元素保存在一個一維數組中,請設計一個盡可能高效的算法,找出A的主元素。若存在主元素,則輸出該元素;否則輸出-1。
上傳時間: 2020-03-04
上傳用戶:霖1234
function [R,k,b] = msc(A) % 多元散射校正 % 輸入待處理矩陣,通過多元散射校正,求得校正后的矩陣 %% 獲得矩陣行列數 [m,n] = size(A); %% 求平均光譜 M = mean(A,2); %% 利用最小二乘法求每一列的斜率k和截距b for i = 1:n a = polyfit(M,A(:,i),1); if i == 1 k = a(1); b = a(2); else k = [k,a(1)]; b = [b,a(2)]; end end %% 求得結果 for i = 1:n AI = (A(:,i)-b(i))/k(i); if i == 1 R = AI; else R = [R,AI]; end end
上傳時間: 2020-03-12
上傳用戶:15275387185
Artificial Intelligence (AI) has undoubtedly been one of the most important buz- zwords over the past years. The goal in AI is to design algorithms that transform com- puters into “intelligent” agents. By intelligence here we do not necessarily mean an extraordinary level of smartness shown by superhuman; it rather often involves very basic problems that humans solve very frequently in their day-to-day life. This can be as simple as recognizing faces in an image, driving a car, playing a board game, or reading (and understanding) an article in a newspaper. The intelligent behaviour ex- hibited by humans when “reading” is one of the mAIn goals for a subfield of AI called Natural Language Processing (NLP). Natural language 1 is one of the most complex tools used by humans for a wide range of reasons, for instance to communicate with others, to express thoughts, feelings and ideas, to ask questions, or to give instruc- tions. Therefore, it is crucial for computers to possess the ability to use the same tool in order to effectively interact with humans.
標簽: Embeddings Processing Language Natural in
上傳時間: 2020-06-10
上傳用戶:shancjb
The Industrial Revolution, which started in England around 1760, has replaced human muscle power with the machine. Artificial intelligence (AI) AIms at replacing human intelligence with the machine. The work on artificial intelligence started in the early 1950s, and the term itself was coined in 1956.
標簽: Fundamentals Intelligence Artificial New the of
上傳時間: 2020-06-10
上傳用戶:shancjb
Artificial Intelligence (AI) is a big field, and this is a big book. We have tried to explore the full breadth of the field, which encompasses logic, probability, and continuous mathematics; perception, reasoning, learning, and action; and everything from microelectronic devices to robotic planetary explorers. The book is also big because we go into some depth. The subtitle of this book is “A Modern Approach.” The intended meaning of this rather empty phrase is that we have tried to synthesize what is now known into a common frame- work, rather than trying to explAIn each subfield of AI in its own historical context. We apologize to those whose subfields are, as a result, less recognizable.
標簽: A-Modern-Approach Intelligence
上傳時間: 2020-06-10
上傳用戶:shancjb
蘋果:蘋果公司發布首份人工智能報告,AI視覺是研究新方向。值得好好學學習!
標簽: 人工智能
上傳時間: 2022-04-27
上傳用戶:slq1234567890
1997年,國際象棋名家卡斯帕羅夫象棋對弈IBM超級電腦深藍,最后結果是大師輸了。2016年,世界頂級圍棋高手李世石與AI圍棋對決,最后竟以1:4慘敗于谷歌阿爾法狗。今年4月,AI電競團隊OpenAI Five與人類戰隊對決《dota》,2:0 完勝世界冠軍OG戰隊。人工智能憑什么能夠戰勝人類?答案是AI背后的超級計算機算力。AI通過算力處理大量的相關數據,并以神經網絡不斷學習成長,最終獲得技能,戰勝人類選手。算力經濟,算力時代,算力改變世界,算力驅動未來。現在很多領域都在談論算力,到底什么是算力?
標簽: 人工智能
上傳時間: 2022-05-30
上傳用戶:
時下智能語音交互市場火熱,越來越多的設備都開始支持遠場AI語音交互。例如:智能音箱,智能電視等等。但這類產品的識別率和誤喚醒率還需再不斷的優化提升,以至于日常生活中人們還是離不開各式各樣的遙控器。而藍牙語音遙控器這一產品,作為遠場語音交互的一個近場配件,也搭上了這趟語音交互的快速列車,成長速度令人驚訝。基于Actions炬芯的ATB1103芯片的語音遙控器,打造了一個AIoT時代的高性價比精品。遙控器總體架構分四層,從上到下依次為應用層、應用框架層、硬件抽象層、底層驅動層:
上傳時間: 2022-06-02
上傳用戶:
ADS1256 是TI(Texas I nstruments )公司推出的一款低噪聲高分辨率的24 位Si gma - Delta("- #)模數轉換器(ADC)。"- #ADC 與傳統的逐次逼近型和積分型ADC 相比有轉換誤差小而價格低廉的優點,但由于受帶寬和有效采樣率的限制,"- #ADC 不適用于高頻數據采集的場合。該款ADS1256 可適合于采集最高頻率只有幾千赫茲的模擬數據的系統中,數據輸出速率最高可為30K 采樣點/秒(SPS),有完善的自校正和系統校正系統, SPI 串行數據傳輸接口。本文結合筆者自己的應用經驗,對該ADC 的基本原理以及應用做簡要介紹。ADs1256 的總體電氣特性下面介紹在使用ADs1256 的過程中要注意的一些電氣方面的具體參數:模擬電源(AVDD )輸入范圍+ 4 . 75V !+ 5 .25V,使用的典型值為+ 5 .00V;數字電源(DVDD )輸入范圍+ 1 . 8V !+ 3 .6V,使用的典型值+ 3 .3V;參考電壓值(VREF= VREFP- VREFN)的范圍+ 0 .5V!+ 2 .6V,使用的典型值為+ 2 .5V;耗散功率最大為57mW;每個模擬輸入端(AI N0 !7 和AI NC M)相對于模擬地(AGND)的絕對電壓值范圍在輸入緩沖器(BUFFER)關閉的時候為AGND-0 .1 !AVDD+ 0 . 1 ,在輸入緩沖器打開的時候為AGND !AVDD-2 .0 ;滿刻度差分模擬輸入電壓值(VI N = AI NP -AI NN)為+ /-(2VREF/PGA);數字輸入邏輯高電平范圍0 .8DVDD!5 .25V(除D0 !D3 的輸入點平不可超過DVDD 外),邏輯低點平范圍DGND!0 .2DVDD;數字輸出邏輯高電平下限為0 .8DVDD,邏輯低電平上限為0 .2DVDD,輸出電流典型值為5mA;主時鐘頻率由外部晶體振蕩器提供給XTAL1和XTAL2 時,要求范圍為2 M!10 MHz ,僅由CLKI N 輸入提供時,范圍為0 .1 M!10 MHz 。
上傳時間: 2022-06-10
上傳用戶:
玄鐵C910指令集手冊,是一款基于RISC-V指令集的高性能處理器,采用12級亂序執行流水線、高精度混合分支預測器,并搭載AI擴展指令的異構處理器,可用于音視頻處理等應用領域。
上傳時間: 2022-06-18
上傳用戶: