跳到主要內容

發表文章

目前顯示的是 3月, 2019的文章


語言學習-English-Circle of LIfe

Song Lyric Title :  Circle of Line Singer :Elton John(version 1),  Carmen Twillie, Lebo M(versioin2) Album : The Lion King: Original Motion Picture Soundtrack Release Date :  1994 From the day we arrive on the planet And blinking, step into the Sun There's more to be seen than can ever be seen More to do than can ever be done Some say eat or be eaten Some say live and let live But all are agreed as they join the stampede You should never take more than you give In the circle of life It's the wheel of fortune It's the leap of faith It's the band of hope Till we find our place On the path unwinding In the circle, the circle of life Some of us fall by the wayside And some of us soar to the stars And some of us sail through our troubles And some have to live with the scars There's far too much to take in here More to find than can ever be found But the Sun rolling high through the

語言學習-English-Tiny Dancer

Song Lyric Title :  Tiny Dancer Singer :Elton John Album :Mandam across the Water Release Date :  1972 Blue jean baby, L.A. lady, seamstress for the band Pretty eyed, pirate smile, you'll marry a music man Ballerina, you must have seen her dancing in the sand And now she's in me, always with me, tiny dancer in my hand Jesus freaks out in the street Handing tickets out for God Turning back she just laughs The boulevard is not that bad Piano man he makes his stand In the auditorium Looking on she sings the songs The words she knows, the tune she hums But oh how it feels so real Lying here with no one near Only you and you can hear me When I say softly, slowly Hold me closer tiny dancer Count the headlights on the highway Lay me down in sheets of linen You had a busy day today Hold me closer tiny dancer Count the headlights on the highway Lay me down in sheets of linen You had a busy day today Blue jean

語言學習-English-Rocket Man

Song Lyric Title :  Rocket Man Singer :Elton John Album : Honky Château Release Date :  1972 She packed my bags last night pre-flight Zero hour nine AM And I'm gonna be high as a kite by then I miss the earth so much I miss my wife It's lonely out in space On such a timeless flight And I think it's gonna be a long long time 'Till touch down brings me round again to find I'm not the man they think I am at home Oh no no no I'm a rocket man Rocket man burning out his fuse up here alone And I think it's gonna be a long long time 'Till touch down brings me round again to find I'm not the man they think I am at home Oh no no no I'm a rocket man Rocket man burning out his fuse up here alone Mars ain't the kind of place to raise your kids In fact it's cold as hell And there's no one there to raise them if you did And all this science I don't understand It's just my job fiv

語言學習-English-Million Reasons

Song Lyric Title : Million Reasons Singer :Lady Gaga Album :  Joanne Release Date :   2016 You're giving me a million reasons to let you go You're giving me a million reasons to quit the show You're givin' me a million reasons Give me a million reasons Givin' me a million reasons About a million reasons If I had a highway, I would run for the hills If you could find a dry way, I'd forever be still But you're giving me a million reasons Give me a million reasons Givin' me a million reasons About a million reasons I bow down to pray I try to make the worst seem better Lord, show me the way To cut through all his worn out leather I've got a hundred million reasons to walk away But baby, I just need one good one to stay Head stuck in a cycle, I look off and I stare It's like that I've stopped breathing, but completely aware 'Cause you're giving me a million reasons Give me

語言學習-Englsih-i'll never love again

Song Lyric Title : I'll never love again Singer :Lady Gaga Album :  A Star is Born Release Date :   2018 Wish I could, I could've said goodbye I would've said what I wanted to Maybe even cried for you If I knew it would be the last time I would've broke my heart in two Tryin' to save a part of you   Don't wanna feel another touch Don't wanna start another fire Don't wanna know another kiss No other name falling off my lips Don't wanna give my heart away To another stranger Or let another day begin Won't even let the sunlight in No, I'll never love again I'll never love again, oh, oh, oh, oh When we first met I never thought that I would fall I never thought that I'd find myself Lying in your arms And I want to pretend that it's not true Oh baby, that you're gone 'Cause my world keeps turning, and turning, and turning And I'm not moving on Do

語言學習-English-Your Song

Song Lyric Title : Your Song Singer :Elton John Album :  Elton John Release Date :  1970 It's a little bit funny, this feeling inside I'm not one of those who can easily hide I don't have much money, but boy if I did I'd buy a big house where we both could live If I was a sculptor, but, but then again, no Or a woman who makes potions on a traveling show I know it's not much, but it's the best I can do My gift is my song, and this one's for you And you can tell everybody this is your song It may be quite simple, but now that it's done I hope you don't mind I hope you don't mind that I put down in words How wonderful life is, now you're in the world I sat on the roof and kicked off the moss Well, a few of the verses, well, they've got me quite cross But the sun's been quite kind while I wrote this song It's for people like you that keep it turned on So excuse me for

程式語言概念-資料結構

程式語言資料結構 資料結構 在討論資料結構時,必須先暸解記憶體的運作過程,首先作業系統會將記憶體(RAM)分頁,切割成特定大小的區塊,來給運作的程式使用,在程式啟動後,會先將編譯過後的程式碼載入到記憶中,並運行,而這些程式碼有些只運行一次,有些則運行多次,如程式的初始化指運行一次,如程式操作運行多次。 而在運行程式時,會運行到有變數的段落,此時就會定義一段記憶體給該變數,而其大小會隨其資料型態改變,當有相同資料型態的資料需要儲存時,通常會用陣列,把需要的資料大小告知後,把相同類型的資放在一起,而陣列是一種資料結構,其一旦宣告後,其記憶體大小就不再改變,因此有靜態的特性,所以相對的,在操作資料結構時會改變其記憶體大小的就是動態的,所以動態的資料結構,會有如何建立、如何搜尋、如何更新、如何刪除的問題,這也衍生到資料庫的CRUD(Create、Read、Update、Delete)這概念,因此在討論的時候會把時間複雜度跟空間複雜度做介紹,這樣是比較全面的做法。 而在儲存資料的時候,會有需要自訂義資料的時候,這也會影響到資料的基本大小,而自定義的型態,通常會使用struct跟class來定義,在各種語言通常struct為value type,class為refference type,兩者在意在,struct 在定義完之後可以像一般的資料型態使用,定義的變數的資料內容是存值,所以不會相互干涉,而class則會,所以class 都會使用new的宣告新的物件,不過這些東西的細部定義需要參考該官方網站的內容,此外還有point type。 常見的資料型態 陣列 array 堆疊 stack 佇列 queue 連結串列 linked list 樹 tree 圖 graph 堆 heap 雜湊表 hash 串列 list 字典 dict 其他 陣列 為靜態的,其記憶體大小在初始化之後,便不能在變動。 連結串列 為動態的資料結構的基本型,由struct、指標跟變數組成,用來構成其它的資料結構。 堆疊 與 佇 列為相似的結構,由多個連結串列組成,目的是用來儲存資料,並後存放資料先被使用,想像疊書,疊十層高,然後從上面開始拿。 佇 列 由多個連結串列組成,目的是用來儲存資料,並先存放資料先被使用,排隊的概

學習語言-English-Need You Now

Song Lyric Title :  Need You Now Singer :Lady  Antebellum Album :New You Now Release Date :  2009 Picture perfect memories Scattered all around the floor Reaching for the phone 'cause, I can't fight it anymore And I wonder if I ever cross your mind For me it happens all the time It's a quarter after one, I'm all alone and I need you now Said I wouldn't call but I lost all control and I need you now And I don't know how I can do without, I just need you now Another shot of whiskey, can't stop looking at the door Wishing you'd come sweepin' in the way you did before And I wonder if I ever cross your mind For me it happens all the time It's a quarter after one, I'm a little drunk, and I need you now Said I wouldn't call but I lost all control and I need you now And I don't know how I can do without, I just need you now Whoa oh whoa Guess I'd rather hurt than feel nothing

學習語言-English-Gives You Hell

Song Lyric Title : Gives You Hell Singer :The All-American Rejects Album :  When the world come down Release Date :  2008 I wake up every evening With a big smile on my face And it never feels out of place And you're still probably working At a nine to five pace I wonder how bad that tastes When you see my face Hope it gives you hell Hope it gives you hell When you walk my way Hope it gives you hell Hope it gives you hell Now where's your picket fence love And where's that shiny car And did it ever get you far You never seemed so tense love I've never seen you fall so hard Do you know where you are And truth be told I miss you And truth be told I'm lying When you see my face Hope it gives you hell Hope it gives you hell When you walk my way Hope it gives you hell Hope it gives you hell If you find a man that's worth a damn and treats you well Then he's a fool you're just as w

語言學習-English-The Bitch Is Back

Song Lyric Title : The Bitch Is Back Singer :Elton John Album :  Caribou Release Date :  1974 I was justified when I was five Raisin' Cain, I spit in your eye Times are changin' now the poor get fat But the fever's gonna catch you when the bitch gets back, oh, oh, oh Eat meat on a Friday, that's all right Even like steak on a Saturday night I can bitch the best at your social do's I get high in the evening sniffing pots of glue, oh, oh, oh I'm a bitch, I'm a bitch oh, the bitch is back Stone cold sober as a matter of fact I can bitch, I can bitch 'cause I'm better than you It's the way that I move, the things that I do oh I entertain by picking brains Sell my soul, by dropping names I don't like those! My God, what's that! Oh, it's full of nasty habits when the bitch gets back. I'm a bitch, I'm a bitch oh, the bitch is back Stone cold sober as a matter of fact I can bitch, I

語言學習-English-Somebody To Love

Song Lyric Title : Somebody To Love Singer :Queen Album :  A Day at Races Release Date :  1976 Can anybody find me somebody to love? Ooh, each morning I get up I die a little Can barely stand on my feet (Take a look at yourself) Take a look in the mirror and cry (and cry) Lord, what you're doing to me (yeah yeah) I have spent all my years in believing you But I just can't get no relief, Lord! Somebody (somebody) ooh somebody (somebody) Can anybody find me somebody to love? I work hard (he works hard) every day of my life I work 'til I ache in my bones At the end (at the end of the day) I take home my hard earned pay all on my own I get down (down) on my knees (knees) And I start to pray 'Til the tears run down from my eyes Lord, somebody (somebody), ooh somebody (Please) can anybody find me somebody to love? Everyday (everyday) I try and I try and I try But everybody wants to put me down They say I'm going craz

語言學習-English-We are the Champian

Song Lyric Title : We are the Champian Singer :Queen Album :  Newa of the World Release Date :  1977 I've paid my dues Time after time I've done my sentence But committed no crime And bad mistakes  I've made a few I've had my share of sand kicked in my face But I've come through We are the champions, my friends And we'll keep on fighting 'til the end We are the champions We are the champions No time for losers 'Cause we are the champions of the world I've taken my bows And my curtain calls You brought me fame and fortune and everything that goes with it I thank you all But it's been no bed of roses No pleasure cruise I consider it a challenge before the whole human race And I ain't gonna lose We are the champions, my friends And we'll keep on fighting 'til the end We are the champions We are the champions No time for losers 'Cause we are the champions of the world

語言學習-Enlish-Bohemian Rhapsody

Song Lyric Title : Bohemian Rhapsody Singer :Queen Album :  A Night at Opera Release Date :  1975 Is this the real life? Is this just fantasy? Caught in a landslide No escape from reality Open your eyes Look up to the skies and see I'm just a poor boy, I need no sympathy Because I'm easy come, easy go A little high, little low Anyway the wind blows, doesn't really matter to me, to me Mama, just killed a man Put a gun against his head Pulled my trigger, now he's dead Mama, life had just begun But now I've gone and thrown it all away Mama, oh oh  Didn't mean to make you cry If I'm not back again this time tomorrow Carry on, carry on, as if nothing really matters Too late, my time has come Sends shivers down my spine Body's aching all the time Goodbye everybody I've got to go Gotta leave you all behind and face the truth Mama, oh oh (anyway the wind blows) I don't want to di

程式語言概念-演算法

程式語言概念 演算法 演算法基本上,分成排序、搜尋、最短路徑單源、最短路徑多源、最小生成樹、最大流量最小割、拓樸排序、線性規劃、hash function、近似、隨機、分制法、動態編程、貪婪等議題的討論,在進行程式優化時,會對函式庫所使用到的演算法,重新撰寫,以節省編譯跟載入時間。 以下就依序對上述議題進行討論,另外比較的時候,需要用同樣的資料結構進行比較。 交換(Swap) 最基本的概念,用於把兩筆資料的記憶體位置互換,所有演算法都會用到。 排序 排序主要目的是對資料進行值得比較,並依照大小順序排序,由小開始,亦可由大開始。 以下是排序演算法種類, 氣泡、選擇、插入、快速、合併、堆疊、桶 氣泡:最簡單的排序演算法,把數值大的往後移動或是把數值小的往前移動,另有同時進行兩種動作的shaker sort。 選擇:找尋最小值或最大值,並將移動到最前位置之後,依序知道所有元素執行完成。 插入:把資料分成已完成排序的區域以及未完成的區域,並把未完成區域的資料不停放入已完成的區域。 快速*:選定一直當作基準值,與基準值比較交換資料位置,再將基準值兩側的值進行前述排序,直到排序結束。 合併*:分制法應用,把資料拆成小資料在合併。 堆疊*(二元堆疊):以樹的結構進行排序,把樹中最大的值移動在上放位置,之後數字再依序排序,此演算法是利用樹的搜尋速度的優勢。 桶*:把資料分到個別的桶中進行排序,然後再合併。 常用的排序法有,快速、合併、堆疊、桶,快速為大多語言預設的演算法,合併需要額外的記憶體,堆疊目前應用來進行排序執行順序,桶在資料龐大時可以拆散資料進行排序。 各種排序時間複雜度比較 搜尋 搜尋主要目的是為了對已經建立的資料結構,對其內容進行搜尋,搜尋特定的資料,所以針對不同的資料結構會有不同的演算法,常見的有Linear Search、binary tree Search、深度優先搜尋、廣度優先搜尋、A* Linear Search:一一比對進行搜尋 binary tree Search:把資料轉成binary tree(有排序過的)後,再進行搜尋,缺點需要花費時間轉乘binary tree。 深度優先搜尋:對樹或圖進行搜尋,在搜尋時會以深度作為優先,會往下走直到無法往下走為止

語言學習-English-Wonderwall

Song Lyric Title : Wonderwall Singer :Oasis Album :  Morning Glorry Release Date :   2013 Today is gonna be the day That they're gonna throw it back to you By now you should've somehow Realized what you gotta do I don't believe that anybody Feels the way I do, about you now Backbeat, the word was on the street That the fire in your heart is out I'm sure you've heard it all before But you never really had a doubt I don't believe that anybody Feels the way I do about you now And all the roads we have to walk are winding And all the lights that lead us there are blinding There are many things that I Would like to say to you but I don't know how Because maybe, you're gonna be the one that saves me And after all, you're my wonderwall Today was gonna be the day But they'll never throw it back to you By now you should've somehow Realized what you're not to do I don't believe that anyb