#你想不到的人工智能##人工智能##ChatGPT牛在哪里##科技圈大小事##微软# 这几天大家都在试玩美国微软公司发布的人工智能应用chatGPT,我也试玩了一下,真是不得了哦,有点儿炸天。看看下面三个例子: 一、我询问"椎间盘突出怎么治呀?",它的回答中规中矩,请看: 椎间盘突出的治疗主要分为药物治疗和物理治疗。 1.药物治疗:常用的药物有镇痛药、抗炎药、血液流变改善剂、药物静脉注射等; 2.物理治疗:如体位拉伸、电热治疗、高频振动、激光照射等; 3.手术治疗:对部分椎间盘突出患者提供了有效的治疗方法; 4.中医治疗:如拔罐、刮痧、按摩等; 5.一般保健:多参加运动、正确调节作息时间及饮食结构,减少精神紧张和体力消耗,可以显著减轻症状。 二、我询问"怎么样才能轻松挣钱呢?",它的回答也是很有逻辑性,请看: 1.投资:可以通过网上投资、证券投资、外汇投资等方式获得相对稳定的收入; 2.创业:利用自身的才能和经验开展新的事业; 3.在网上赚钱:可以利用网络赚钱,比如收集信息、写文章、网络宣传等; 4.加入共享经济:可以加入一些共享经济平台,利用自己的时间、空间和物品,可以获得收入; 5.参加兼职:可以参加一些短期性的兼职工作,赚取收入。 三、我询问"能否用c++语言写一个动态规划算法的demo?",chatGPT的回答非常正确,完全能够编译调试通过,炸天啦!!!!!,请看: 可以,下面是一个关于使用C++编写动态规划算法的示例: /* Includes */ #include #include /* Function to find the longest common subsequence of two strings */ std::string longestCommonSubsequence(std::string s1, std::string s2){ int m = s1.length(); int n = s2.length(); int L[m+1][n+1]; /* Build L[m+1][n+1] in bottom up fashion */ for (int i=0; i<=m; i++) { for (int j=0; j<=n; j++) { if (i == 0 || j == 0) L[i][j] = 0; else if (s1[i-1] == s2[j-1]) L[i][j] = L[i-1][j-1] + 1; else L[i][j] = std::max(L[i-1][j], L[i][j-1]); } } /* Data to store the solution */ std::string result = ""; int i = m, j = n; while (i > 0 && j > 0) { if (s1[i-1] == s2[j-1]) { result = s1[i-1] + result; i--; j--; } /* Move left or up */ else if (L[i-1][j] > L[i][j-1]) i--; else j--; } return result; } /* Main Function */ int main(){ std::string s1 = "ABCDGH"; std::string s2 = "AEDFHR"; std::cout << "Longest Common Subsequence : "; std::cout << longestCommonSubsequence(s1, s2); return 0; }